Hreflang Tag Generator
Generate hreflang link tags for international SEO. Add language/region pairs (en-US, en-GB, fr-FR), x-default tag, ISO 639-1 language picker, ISO 3166-1 region picker, duplicate detection, and batch input. 100% client-side.
About Hreflang Tag Generator
Generate hreflang link tags for international SEO. Add language/region pairs (en-US, en-GB, fr-FR), x-default tag, ISO 639-1 language picker, ISO 3166-1 region picker, duplicate detection, and batch input. 100% client-side. Everything runs locally in your browser — your data never leaves your device.
How to use
- Enter your input in the tool above.
- Adjust any options to your preference.
- Use the Copy or Download buttons to save the result.
- Everything happens locally — your data never leaves your browser.
FAQ
What is hreflang?
hreflang is an HTML attribute on <link rel="alternate"> tags that tells search engines which language and region a page targets. Example: hreflang="en-US" targets English speakers in the USA. It's how Google knows to show the right localized version in search results.
What is x-default?
x-default is a special hreflang value that tells Google which page to show when no other language/region matches the user. It's typically the English or default-language version of the page.
What's the correct hreflang value format?
Either language only (en, fr, de) or language-region (en-US, en-GB, fr-CA, pt-BR). Language codes are ISO 639-1 (2 letters); region codes are ISO 3166-1 alpha-2 (2 letters). They're separated by a hyphen.
What extra features does this tool have compared to others?
(1) Language code picker (ISO 639-1). (2) Region code picker (ISO 3166-1 alpha-2). (3) URL input per language pair. (4) x-default toggle. (5) Batch input — paste a list. (6) Validation (unknown language/region codes). (7) Live preview. (8) Duplicate detection. (9) History (localStorage, last 20). (10) Shareable URL — encode the form in the fragment.
Is my data sent anywhere?
No. Hreflang tag generation is pure string templating in your browser. History is stored in localStorage on this device only.
Related tools
Breadcrumb Schema Generator
Generate BreadcrumbList schema.org JSON-LD for rich results. Add/remove items, reorder up/down, bulk paste, live preview, Google Rich Results test link, and HTML script-tag wrapper. 100% client-side.
Canonical Tag Generator
Generate canonical link tags and check for common mistakes. URL normalization, pagination prev/next, hreflang integration, cross-domain warnings, batch processing. 100% client-side.
Content Brief Generator
Generate SEO content briefs for writers: target keyword, title, search intent, word count target, outline, key points, LSI keywords, internal/external links, and competitor URLs. Export as Markdown or HTML. 100% client-side.