Cookie Preferences

We use cookies to enhance your experience, analyze site traffic, and serve personalized content. By clicking "Accept All", you consent to our use of cookies.

Back to Blog
International SEO

Hreflang Implementation Guide: Setup, Errors & Best Practices (2026)

April 18, 2026 11 min read SiteGrip Team

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

Pros

Most reliable, works for all page types

Cons

Requires CMS access; impractical for very large sites

Best For

Sites under 10,000 pages

XML Sitemap

Pros

No need to modify individual pages; scalable for large sites

Cons

Sitemap must be kept perfectly in sync

Best For

Large e-commerce or publishing sites

HTTP Response Headers

Pros

Works for non-HTML files (PDFs, etc.)

Cons

Requires server-level configuration

Best For

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