Free tool · in your browser
Hreflang tag generator
Tell Google which language or country version of a page to show each visitor. Add the URL for each version, pick HTML link tags or XML sitemap output, and copy the result. It checks language codes, absolute URLs and the x-default fallback as you type.
Language and region versions of one page
Each language version must list all the others, including itself. Paste the same block on every version.
Add inside <head> on every version
<link rel="alternate" hreflang="en-US" href="https://example.com/us/" /> <link rel="alternate" hreflang="en-GB" href="https://example.com/uk/" /> <link rel="alternate" hreflang="x-default" href="https://example.com/" />
How to use it
Hreflang rules that trip people up
Every version must list all versions, including itself, and the annotations must be reciprocal: if page A points to page B, page B must point back to A. Missing return links are the most common reason hreflang is ignored.
Use absolute URLs, valid codes (language first, then optional region, for example en-GB or ur-PK) and add an x-default row for visitors who match none of your versions. Hreflang is a hint, not a command, and works best with clean canonical tags.
More tools: International ecommerce SEO, Schema markup generator, SEO service.
FAQ
Hreflang Tag Generator: common questions
A hreflang annotation tells search engines which language or regional version of a page to show a visitor, so people in each country see the right URL.
Either as link tags in the head of every version, in the HTTP header for non-HTML files, or in your XML sitemap. Pick one method and keep it consistent.
The fallback version for visitors whose language or region you do not target, often your main or language-selector page.
If the pages differ, for example UK and US pricing or spelling, yes. Use codes like en-GB and en-US so each audience gets the right one.
No. It runs in your browser and nothing is sent anywhere.
Want these numbers working in your favour?
I plan and run paid media to a real profit target, not a vanity ROAS, and report on the revenue it drives. Start with a free consultation.