Hreflang & Canonical Tag Generator
Generate multi-language and regional hreflang link tags for international sites.
<link rel="alternate" hreflang="en-US" href="https://example.com/en-us" /> <link rel="alternate" hreflang="en-GB" href="https://example.com/en-gb" /> <link rel="alternate" hreflang="es-ES" href="https://example.com/es" /> <link rel="alternate" hreflang="x-default" href="https://example.com/" />
How Hreflang & Canonical Tag Generator works
Validates ISO 639-1 language codes and ISO 3166-1 country codes.
Creates reciprocal alternate link elements for search engines.
Includes required x-default fallback for unmatched visitor languages.
Worked example
Set up localized English and Spanish regional versions for global corporate websites.
The tool above opens with these numbers. Change them to run your own scenario, or press Reset to come back to this example.
Frequently asked questions
Related tools
Preview how your URLs will look when shared on X/Twitter, LinkedIn, and Facebook.
Convert old and new URL pairs into Nginx, Apache, and Cloudflare redirect rules.
See your result exactly as Google will render it — before you ship.
Rich-result-ready JSON-LD for articles, products, FAQs and local.
Six keyword-first titles, sized to Google's 60-character budget.
Benefit-led descriptions that fit 155 characters and earn the click.
- hreflang
- international-seo
- canonical
- seo
- localization