Hreflang Tag Generator
Build a set of hreflang link tags mapping each language or region version of a page to its URL, including an optional x-default fallback.
Use ISO 639-1 language codes (en, es, fr), optionally with an ISO 3166-1 region like en-US or en-GB. Add these tags to the <head> of every language version of the page, including a self-referencing tag for the page itself.
Frequently asked questions
What does hreflang actually do?+
It tells search engines which URL to show users based on their language or region, so a French-speaking visitor gets your /fr/ page instead of the default English one in search results.
Do I need a self-referencing tag?+
Yes, each page's own hreflang set should include a tag pointing back to itself, in addition to its alternate language versions.
What is x-default for?+
It specifies a fallback page to show visitors whose language or region doesn't match any of your other hreflang entries.