Add one row for each language or region version of this page. The tool writes matching tags for the HTML head, HTTP Link headers and an XML sitemap entry.
The preferred address of the page you are annotating. It should also appear as one of the alternates below.
The fallback page for visitors whose language and region match none of the rows above.
What Hreflang Tells Search Engines
Hreflang is an annotation that tells search engines which version of a page is meant for which language and, optionally, which region. When the same content exists in several languages, say English, Hindi and German, each version can declare the others. A searcher is then sent to the version that matches their language instead of whichever one the engine happens to rank.
The annotation can be written in three places: link elements in the HTML head, HTTP Link response headers, or an xhtml:link entry inside an XML sitemap. This generator builds all three from the same list of rows, so the sets stay identical. The canonical link is included too, because it names the preferred URL of the page the annotations belong to.
Where the Tags Are Useful
Limits and Notes
The generator checks what you type, not the live web. It confirms that each URL is absolute, that each language code has a valid shape, and that no language and region pair appears twice. It does not fetch the pages, so make sure every alternate URL returns a real page, that the pages list each other back, and that the content is a genuine translation or regional variant of the same page.
Hreflang does not translate anything. It only labels pages that already exist. Codes are checked against the language and region lists built into the tool; a two-letter code outside that list is flagged for a second look rather than blocked, because the ISO standard has more codes than any short list can hold.
Frequently Asked Questions
Yes. Hreflang annotations must be reciprocal. If the English page lists the German page, the German page must list the English page too, and each page must include a link to itself. If a page is left out of the set, search engines may ignore the links between the other pages as well.
x-default names the page to show when a visitor's language and region match none of the listed alternates. It is usually a language selector page or your main default-language version. Adding it is recommended, and this tool includes it unless you switch it off.
No. A hreflang value always starts with a language code, such as en or hi. A region is optional and comes after it, as in en-IN or en-GB. A region on its own, such as IN, is not a valid value, so the tool asks you to choose a language.
No. The tags are generated in your browser with plain JavaScript. Your rows and canonical URL are saved in local storage on your device so they are still there when you return, and nothing is uploaded.