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
Affiliate Commission Calculator
Calculate affiliate commissions across four program types — flat percent, tiered percent (progressive brackets), recurring (monthly × N months), and hybrid (initial + recurring). Apply refund-rate and tax-withholding adjustments, compute effective commission rate, compare two program types side-by-side, and project break-even sales to hit a target income. History (localStorage) + shareable URL. 100% client-side.
Affiliate Link Cloaker & Redirect Generator
Cloak affiliate links into pretty URLs and generate redirect scripts (PHP, JavaScript, HTML meta refresh), plus .htaccess, nginx, and robots.txt rules. CSV import of slug/affiliate_url pairs, slug auto-generator from hostname, click-tracking parameter builder, URL-shortener compatibility check, history (localStorage), shareable URL. 100% client-side.
Anchor Text Distribution Analyzer
Analyze anchor text distribution from backlink data. Categorize anchors as exact/partial match, branded, generic, naked URL, or image. Compute distribution %, warn on over-optimization, and export. 100% client-side.