Hreflang Tag Generator
Build hreflang tags for international SEO.
<link rel="alternate" hreflang="en" href="https://example.com/" /> <link rel="alternate" hreflang="en-GB" href="https://example.com/uk/" /> <link rel="alternate" hreflang="es" href="https://example.com/es/" /> <link rel="alternate" hreflang="x-default" href="https://example.com/" />
hreflang must be reciprocal: every language version should list the full set, including itself. Use a language code (en) or language-region (en-GB). x-default points crawlers to your fallback for unmatched locales.
How to use the Hreflang Tag Generator
- 1 Add a row for each language or region version with its code and URL.
- 2 Optionally set an x-default fallback URL.
- 3 Copy the hreflang tags into the <head> of every version.
Examples
- ▸ <link rel="alternate" hreflang="en-GB" href="https://example.com/uk/" />
Frequently asked questions
Where do hreflang tags go?
In the <head> of each page (or in your XML sitemap / HTTP headers). Every language version must list the full set of alternates, including a self-reference.
What is hreflang="x-default"?
It tells search engines which page to show users whose language or region does not match any of your specific versions — usually a global or language-selector page.
What code format should I use?
Use an ISO 639-1 language code (en) optionally with an ISO 3166-1 region (en-GB). Do not use a region alone.
Related tools
Meta Tag Generator
Build SEO meta tags with a live preview.
XML Sitemap Generator
Turn a URL list into a valid sitemap.xml.
Schema Markup Generator
Create JSON-LD structured data.
URL Slug Generator
SEO-friendly slugs with stop-word removal.
Canonical Tag Checker
Verify a page's canonical tag and catch duplicate-content mistakes.