Hreflang Generator
Generate hreflang tags for multi-language pages.
Processed locally in your browser. Nothing you enter is uploaded.
- Builds the full reciprocal set of `<link rel="alternate" hreflang>` tags from one list.
- Includes the self-referencing tag that's easy to forget.
- Optional `x-default` tag — Google's documented fallback for visitors whose language/region doesn't match any listed variant.
- Runs in your browser.
Why this is private
- Processed locally in your browser. Nothing you enter is uploaded.
- Open your browser's DevTools → Network tab while using this tool — you won't see a request carrying your input, because it never leaves your device.
- Nothing you enter is uploaded to a server or shared with us — the processing happens entirely on your device.
Overview
Generates hreflang <link> tags that tell search engines which language/region version of a page to show, for sites with multiple localized versions of the same content.
How to use it
- 1Add a row per language version with its language code and URL.
- 2Check "Include x-default" and set a fallback URL if you want one.
- 3Copy the generated tags into every version's <head>.
Tips
- Every localized page should list hreflang tags for ALL versions including itself — a common mistake is only linking to the others.
Frequently asked questions
What people use it for
Connect UK and US versions of a page`en-GB` and `en-US` URLs so each market sees the right spelling and pricing.
Add a new locale to an existing setRegenerate the complete tag block including the new language.
Fix pages ranking in the wrong countryCorrect or add hreflang so Google serves the local version.
Set an `x-default` fallbackCheck the x-default option to point users with no matching locale to a default page.
Related tools
All seo toolsMeta Tags GeneratorGenerate title, description and Open Graph meta tags.SERP Snippet PreviewPreview how a page will look in Google search results, with a color-coded length status.XML Sitemap GeneratorGenerate a sitemap.xml file from a list of your site's URLs, with lastmod, changefreq and priority.Meta Tags AnalyzerSee the actual live meta tags on any public page — title, description, Open Graph, Twitter Card and more.
Ready to use Hreflang Generator?
Hreflang Generator