Hreflang Tag Generator
Create hreflang link tags for multilingual and multi-regional websites.
Tool
Was this tool useful?
About this tool
About Hreflang Tag Generator
Hreflang tags tell Google which language or regional version of a page to show each user. This tool validates the language codes and builds the full set of tags.
Example
en, en-gb and es versions each need the same three tags plus x-default, so every page points to all the others.
How to use this tool
- Enter a language code and URL on each line (e.g. en-gb https://example.com/uk/).
- Add an optional x-default URL for users who match no language.
- Copy the tags into the <head> of every version of the page.
Frequently asked questions
Which codes can I use?
ISO 639-1 language codes (en, es, ur), optionally with an ISO 3166-1 region (en-gb, es-mx).
Do the tags need to be on every page?
Yes. Hreflang must be reciprocal – each language version must link to every other version and to itself.
Will using the Hreflang Tag Generator improve my rankings?
The Hreflang Tag Generator helps you get the technical details right, which removes problems that can hold a page back. Rankings still depend mostly on helpful content, links and user experience, so use it as part of a wider SEO plan.