About Hreflang Tag Generator
Hreflang tells search engines which language or regional version of a page to show, so a reader in Germany gets the German page and a reader in Taiwan gets traditional Chinese. Add one row per version with its language code, optionally followed by a region (en, en-GB, zh-TW), and its URL, plus an x-default page for everyone else. The generator validates the codes, flags duplicates and reminds you that each page has to list itself too.
You get three formats: link tags for the head of each page, xhtml:link entries for your XML sitemap, and HTTP Link headers for PDFs and other files without a head. One method is enough, but every version needs the full set, because hreflang only counts when the pages point at each other. It all runs in your browser, and nothing is uploaded.
How to use Hreflang Tag Generator
- 1Add each version
Enter a language code, adding a region if you target one country, and the URL of that version.
- 2Set x-default
Choose the page for visitors whose language isn't listed, such as a language picker or your main version.
- 3Fix any warnings
Correct invalid codes and duplicates, and make sure the page's own version is in the list.
- 4Copy your format
Take the link tags, sitemap entries or HTTP headers and add them to every version.
Why use Cubfile for this
- Three formats
HTML link tags, XML sitemap xhtml:link entries and HTTP Link headers.
- Code checks
Invalid language and region codes and duplicate entries are flagged.
- x-default included
A fallback page for every language you don't cover.
- In your browser
Free, not counted as a task, and nothing is uploaded.