What is Hreflang Tag Generator?
A hreflang tag tells search engines which language or regional version of a page should be shown to a visitor. It is most useful when the same content exists in English, Spanish, Chinese, Japanese, or another language. Static sites often need these tags because GitHub Pages and simple HTML exports do not create them automatically.
quickAnswer
Use hreflang tags to tell search engines which language or regional version of a page to show to users. Every page in a language group must link to every other version, including itself.
Last updated: 2026-05-25
limitations
- Hreflang tags do not work on non-indexed pages. Each page in the group must be indexable by search engines.
- Incorrect or mismatched language codes cause search engines to ignore the entire hreflang set.
- Google uses hreflang as a hint. The wrong language version may still appear in search results for some queries.
Sources:MDN Web Docs · W3C Specifications · jquery.app on GitHub
How to use this tool
- Enter one language and URL pair per line, using the format language-code|absolute-url.
- Add an x-default URL if you have a global landing page or language selector.
- Copy the generated tags into the head section of every equivalent language page.
- Make sure each translated page includes the full hreflang set, including itself.
What you can use it for
- Add alternate language tags to static HTML pages.
- Check language URL pairs before publishing.
- Create an x-default URL for language selector pages.