Hreflang Generator
Add your URLs with language/region codes and instantly generate hreflang link tags for international SEO.
x-default URL (optional)
Catch-all for users whose locale does not match any specific variant.
Language Variants
URL
Language
Region
Use ISO 639-1 for language (e.g. en) and ISO 3166-1 alpha-2 for region (e.g. US).
Generated Hreflang Tags
Add language variants and click Generate Tags to see the output.
Remember
Paste these tags inside the <head> of every language variant of the page, not just the primary one. Each variant must reference all others, including itself.
Copied!
Summary
Add your URLs with language/region codes and instantly generate hreflang link tags for international SEO.
How it works
- Enter the base URL of the page you want to tag.
- Add one row per language/region variant with its full URL.
- Select the ISO 639-1 language code and optional ISO 3166-1 region code for each row.
- Optionally specify an x-default URL as a catch-all for unmatched locales.
- Click "Generate Tags" to produce the complete set of hreflang link elements.
- Copy the output and paste it inside the <head> of every language variant of the page.
Use cases
- International e-commerce sites serving different countries in different languages.
- News and media sites with region-specific editions (e.g., en-US vs en-GB).
- SaaS products with localized landing pages for multiple markets.
- Blogs translated into multiple languages that need proper canonical signals.
- Travel websites targeting country-specific audiences.
- Corporate sites with region-specific offices and local-language pages.
- Educational platforms offering content in several languages.
- Avoiding duplicate-content penalties across language variants.
Frequently Asked Questions
Related tools
Last updated: 2026-05-29 ·
Reviewed by Nham Vu