- Home
- SEO & Marketing
- Hreflang Tag Generator
Hreflang Tag Generator
Generate hreflang tags for a multilingual page: HTML links, an HTTP Link header or sitemap entries.
What it is for?What it is for?
Hreflang tells search engines that a page exists in other languages or for other regions, and which address belongs to which audience. Without it, a search engine may show the English page to a visitor in Germany, or treat near-identical regional pages as duplicates. You need it whenever the same content is published in more than one language or regional version.
The rules search engines check
Every language version must carry the same full set of tags, including a tag that points to itself, and the URLs must be absolute. A code is a language, optionally followed by a region: en, en-GB, pt-BR. A country alone is not valid, so use ja and not jp, and en-GB and not en-UK. x-default names the page for visitors whose language is not in the list. Use one method per site: tags in the head, the Link header for PDFs and other files, or the sitemap.
How to use it
Write one line per version: a code, a vertical bar, then the full URL. The tool tidies the case, so EN_gb becomes en-GB, and a script subtag such as zh-Hant is accepted. Choose the output and copy it. In the sitemap output each version gets its own url entry that lists all the alternates, which is the form search engines expect.
What the checks catch
- Codes that are not valid, and country codes used as languages, such as jp or se, with the language code to use instead.
- uk on its own, which means Ukrainian, and en-UK, which should be en-GB.
- Relative URLs, codes listed twice and a missing x-default.
The tool cannot see your site. It does not check that each page really carries these tags, that the URLs work, or that the pages point back to each other. Missing return links are a common reason search engines ignore hreflang.
It stays in the browser
Parsing and checks run in this tab. Nothing is sent to a server.