Free Backlink CheckerFree Backlink Checker
Crawly
Free SEO Tool

hreflang Generator

Generate correct hreflang tags for multilingual and multi-regional sites.

Language / RegionURL

Generated hreflang tags

Add URLs above to generate hreflang tags.

Paste these tags inside the <head> of each language variant of the page.

What is hreflang and when do you need it?

Hreflang is an HTML attribute that tells Google which language and regional version of a page to show to users in different countries. It sits inside the <head> of each page and points to all other language or regional variants of that same content.

You need hreflang when your site has the same content in multiple languages or serves different versions to different countries. Without it, Google may show the wrong language version to users, or treat your translated pages as duplicate content.

Language targeting

Use language codes like en, fr, or de to target speakers of a language regardless of their country. Useful when you have one version of a language that serves all regions.

Regional targeting

Use language-region codes like en-GB or en-US to target speakers of a language in a specific country. Use this when you have genuinely different content for different markets.

x-default

The x-default hreflang value specifies which page to show when no other version matches the user's language or country. It is typically the international or English version of the page.

Common hreflang mistakes

Hreflang is one of the most error-prone areas of international SEO. Small mistakes in syntax or implementation can cause the wrong pages to rank in the wrong countries.

Missing return tags

Every page in an hreflang set must include tags pointing to all other pages in the set, including itself. If page A points to page B but page B does not point back to page A, Google ignores the hreflang relationship entirely.

Wrong language or region code

Hreflang codes must use valid ISO 639-1 language codes (e.g. en, fr, de) and ISO 3166-1 region codes (e.g. GB, US, AU). Using incorrect or made-up codes causes Google to ignore the tags.

Missing x-default

The x-default tag tells Google which page to show when no other variant matches the user's location or language. Without it, Google makes its own choice, which may not match your preferred fallback URL.

Pointing to redirecting URLs

All URLs in hreflang tags must resolve to a 200 status code. Pointing to a URL that redirects causes Google to ignore that entry. Always use the final canonical URL in each hreflang tag.

Audit hreflang across your whole site

Crawly crawls your site and flags hreflang issues automatically, including missing return tags, missing x-default, and invalid language codes. Catch problems before they affect international rankings.

Download Crawly free

Crawly

Audit your entire site, not just one page

Crawly crawls every URL on your site and surfaces issues automatically. Free to download for Mac.

Download free