Built and fact-checked by the DocNectar team — see our editorial standards
Key Features
Instant Calculation
Get accurate results in real time with our optimized algorithm.
Mobile Friendly
Fully responsive design. Works on all devices & screen sizes.
Privacy Focused
Your data stays on your device. We don't store any inputs.
100% Free
No hidden costs. This tool is completely free forever.
Hreflang tags tell search engines which language or regional version of a page to show searchers in a given locale — essential for sites with multiple language or country versions of the same content. Hand-writing these tags for many language versions is tedious and easy to get subtly wrong.
This generator builds a full set of hreflang tags from a simple list of language codes and their corresponding URLs.
How it works
Add a row for each language or language-region version of the page, with its language code (like "en", "fr", or "en-us") and URL. Use "x-default" as the code for a fallback version if you have one. The tool generates a complete set of alternate link tags.
- Add a row for each language (or language-region) version of the page.
- Use "x-default" as the language code for the fallback version, if you have one.
- Click Generate, then copy the tags into the <head> of every version of the page.
Examples
Two language versions plus a default
English, French, and an x-default fallback each get their own <link rel="alternate" hreflang="..."> tag pointing to their respective URLs.
Who should use it
- Setting up international SEO for a site with multiple language or regional versions.
- Quickly regenerating a full hreflang set when adding a new language version.
Industry applications
- International SEO
- Web development and localization
Advantages
- Generates a complete, correctly-formatted tag set in one pass.
- Supports "x-default" for fallback version targeting.
Limitations
- Doesn't verify that every version of the page has generated reciprocal tags — that's still on you to implement consistently across all versions.
Common mistakes to avoid
- Adding hreflang tags to only one version of a page instead of reciprocally on every version.
- Using inconsistent or invalid language/region code formats across different pages.
Best practices
- Make sure every language version of a page links to all other versions (including itself) with matching hreflang tags — missing reciprocal links is the most common hreflang implementation error.
Tips
- After publishing, verify your hreflang implementation with Google Search Console's International Targeting report to catch missing reciprocal links.