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 site owners often need these tags because GitHub Pages and simple HTML exports do not create them automatically.
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.