en | https://example.com/ en-GB | https://example.com/uk/
About This Tool
Hreflang Tag Generator builds HTML head tags, XML sitemap xhtml:link entries, or HTTP Link headers from pasted language|URL lines, with x-default and code checks (including en-UK β en-GB). No network requests β paste only. Runs locally in your browser.
How to Use
- Paste language | URL lines
- Optionally set x-default
- Generate and pick HTML, sitemap, or header output
- Fix any validation warnings
- Copy the tags
Common Use Cases
- SEO: Publish alternate language annotations
- Migrations: Rebuild hreflang after URL changes
- Sitemaps: Emit xhtml:link blocks
- Headers: Produce Link values for CDNs
- QA: Catch bad region codes like en-UK