Hreflang Generator
Generate hreflang link tags for multilingual and regional pages
Use x-default for the fallback page shown when no locale matches.
Everything runs in your browser. Your data never leaves your device.
Related tools
How to use
Add a row for each language or regional version of the page. Enter the hreflang locale code and the full URL for that version. Copy the generated tags and paste them into the head of every variant — including the x-default.
Add locale and URL pairs
Enter a BCP 47 language tag in the hreflang column (e.g. en, en-US, ko, ja) and the absolute URL of that language version. Use x-default for the fallback shown when no locale matches.
Add rows for every variant
Every language version should reference all the others, including itself. If your site has en, ko, and ja versions, each page must include three hreflang tags plus an x-default.
Copy and paste into every page variant
The same set of hreflang tags goes into the head of all the pages listed — the en page, the ko page, the ja page, and so on. Incomplete implementation causes Google to ignore the hints.
Examples
Three-language blog with x-default
A blog has English (/en/), Korean (/ko/), and Japanese (/ja/) versions of each post, with English as the default for unrecognised locales. Add rows for en, ko, ja, and x-default pointing to the English URL. Copy the four tags and paste them into the head of all three page variants.
Regional targeting within one language
An e-commerce site has separate pages for en-US and en-GB to show different pricing and shipping. Add rows for en-US, en-GB, and x-default. Paste all three tags into both the US and UK page variants so search engines can route users to the correct regional version.
About this tool
Generate hreflang link tags that tell search engines which language and region each version of a page targets. Enter locale codes (e.g. en, ko, ja, en-GB) and the corresponding URLs, then copy the generated HTML link tags to paste into each page variant. Include x-default for the fallback URL. Nothing is uploaded.