Hreflang Implementation Guide: Setup, Errors & Best Practices (2026)
Hreflang is an HTML attribute that tells Google which language and region a page is written for, and which other-language versions exist. Implemented correctly, it ensures your French visitors see your French pages in Google search results, not your English ones.
The Basic Hreflang Syntax
Add hreflang tags in the <head> of every page in your multilingual set:
<!-- On your English (US) page --> <link rel="alternate" hreflang="en-US" href="https://example.com/en/" /> <link rel="alternate" hreflang="fr-FR" href="https://example.com/fr/" /> <link rel="alternate" hreflang="de-DE" href="https://example.com/de/" /> <link rel="alternate" hreflang="x-default" href="https://example.com/en/" /> <!-- The SAME tags must appear on the French page too (return tags) -->
3 Ways to Implement Hreflang
HTML <head> tags
Most reliable, works for all page types
Requires CMS access; impractical for very large sites
Sites under 10,000 pages
XML Sitemap
No need to modify individual pages; scalable for large sites
Sitemap must be kept perfectly in sync
Large e-commerce or publishing sites
HTTP Response Headers
Works for non-HTML files (PDFs, etc.)
Requires server-level configuration
Non-HTML assets or server-rendered apps
4 Most Common Hreflang Errors
Missing return tag
Every hreflang page must include a self-referencing tag AND a return tag pointing back to all other language versions. If /en/ points to /fr/ but /fr/ does not point back to /en/, Google ignores the entire set.
Wrong language codes
Use ISO 639-1 language codes (en, fr, de) and ISO 3166-1 country codes (US, GB, FR) in the correct format: lang-COUNTRY (e.g., en-GB, not en-gb or ENG).
Hreflang on noindex pages
Don't add hreflang to pages with a noindex directive. Google will refuse to index them, which invalidates the hreflang relationship.
Not including x-default
The x-default tag specifies the fallback page for users who don't match any language/region. Omitting it means some users will land on a random language version.
Audit Your Hreflang Tags Across Every Page
SiteGrip crawls your entire site, validates all hreflang relationships, and surfaces missing return tags and invalid codes instantly.
Audit Hreflang Free