Hreflang tags tell search engines like Google which language and regional version of a page to show a given user, which prevents duplicate content confusion and improves relevance in international results. They’re added to the <head> section of every page and its alternate versions: include tags for all language/region variants, ensure bidirectional (return) links, add a self-referential tag, and use x-default for a general fallback. If a page has no international equivalent, don’t add hreflang tags to it at all.
Why Hreflang Matters for International SEO
Hreflang is one of the clearer signals you can send a search engine on a multilingual or multi-regional site. Get it right, and:
- You avoid duplicate content confusion across language versions of the same content.
- You improve click-through rate by making sure the version searchers land on actually matches their language and location.
- You reduce wasted crawl budget — search engines aren’t left guessing which version is canonical.
Get it wrong, and the failure mode is quiet but real: the wrong page ranks for the wrong audience, and you often don’t notice until traffic from a specific region looks off.
How to Implement Hreflang Tags Step by Step
- Identify your language and region variants. Use ISO 639-1 language codes (e.g., “en” for English, “fr” for French), with optional ISO 3166-1 country codes layered on (e.g., “en-us” for US English, “es-mx” for Spanish/Mexico).
- Add tags to the <head> section. Place <link rel=”alternate” hreflang=”code” href=”full-url”> elements in every variant’s HTML head:
<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=”x-default” href=”https://example.com/” />
- Make links bidirectional and self-referential. Every page needs to list itself plus all its alternates — the French page references the English page and vice versa. Skipping the self-reference is one of the most common sources of hreflang errors.
- Include x-default as a fallback. This catches users whose language/region doesn’t match any of your specific variants.
- Avoid the common mistakes. No conflicting codes (like “us-en” instead of “en-us”), no hreflang tags pointing to a page with no real alternate, and consistent absolute URLs throughout.
Hreflang vs. Other Implementation Methods
Placing tags directly in the HTML head is the most common approach and works well for most sites, though it can add weight to large, heavily-localized pages. The alternatives:
- HTTP headers — useful for non-HTML files like PDFs, where there’s no <head> to add tags to.
- XML sitemaps — better for scale, using xhtml:link attributes instead of in-page tags.
Pick one method and stay consistent. Mixing approaches across a site is a common source of conflicting signals.
Baidu Doesn’t Support Hreflang — Here’s the Workaround
Baidu, the dominant search engine in China, doesn’t honor hreflang tags the way Google does. It focuses on Simplified Chinese content and local relevance within its own ecosystem — hreflang signals aimed at Baidu are simply ignored, and can even create indexing confusion by pointing toward non-Chinese pages.
To handle China targeting properly:
- Treat your Chinese version as a standalone site — a dedicated .cn domain or subdomain works better than a subfolder.
- Host content in China or via a local CDN for faster loading and priority crawling.
- Submit a Chinese-only XML sitemap to Baidu Webmaster Tools to preserve crawl budget.
- Add a <meta http-equiv=”content-language” content=”zh-CN”> tag to the head of Chinese pages.
- Keep hreflang tags out of the Simplified Chinese pages’ HTML head — reserve them for a separate XML sitemap aimed at Google if you still need that global signal.
- Prioritize the local signals that actually move the needle on Baidu: full Simplified Chinese content, Pinyin-friendly URLs, consistent local NAP, and ICP licensing where required.
How to Actually Check Your Hreflang Setup
Search Console’s old International Targeting report, which used to be the standard place to check for hreflang errors, was deprecated and removed in September 2022. If you’re looking for it, it’s gone. Google still supports hreflang itself, just not through that report. It’s a good reminder that Search Console’s reporting changes more than people assume, and the same is true of how GSC and Analytics data relate to each other more broadly.
What to use instead:
- Merkle’s hreflang tags testing tool — checks HTML, HTTP headers, and XML sitemap implementations for a given page.
- Aleyda Solis’s hreflang tags generator — useful for building out the tags correctly in the first place, which prevents most errors before they happen.
- Manual spot-checks via view-source on your key pages, confirming every variant lists itself and all its alternates correctly.
Checklist
- List all variants and confirm bidirectional links.
- Validate codes against ISO standards.
- Add self-referential and x-default tags where appropriate.
- Test with a third-party hreflang validator (not Search Console — that report no longer exists).
- For China traffic, verify your Baidu-specific setup separately.
FAQ
Do I need hreflang tags if my site only has one language?
No. Hreflang exists specifically to tell search engines which of several regional or language variants to serve — if there’s only one version of your content, there’s nothing for hreflang to differentiate between.
Can I check my hreflang setup in Google Search Console?
Not directly anymore. Search Console’s dedicated International Targeting report was deprecated and removed in September 2022. Google still supports and uses hreflang tags, but you’ll need a third-party validator to actually check your implementation now.
Does hreflang work on Baidu the way it does on Google?
No. Baidu doesn’t honor hreflang tags — it relies on its own signals like local content, hosting location, and ICP licensing. If China is a meaningful market for you, treat that targeting as a separate workflow from your hreflang setup for other search engines.
What happens if I get hreflang wrong?
The most common failure is the wrong regional or language version ranking for the wrong audience — not a penalty, just a quiet mismatch that’s easy to miss unless you’re specifically checking region-by-region performance.
TLDR
Hreflang tags tell search engines which language or regional version of a page to serve, using tags in the HTML head, HTTP headers, or XML sitemaps — pick one method and stay consistent. Every variant needs to reference itself and all its alternates, plus an x-default fallback. Baidu doesn’t honor hreflang at all and needs a separate approach. And if you’re trying to check your setup: Search Console’s old hreflang report has been gone since 2022 — use a dedicated third-party validator instead.
Sources:
- Google Search Central: Localized versions of your pages
- Merkle hreflang tags testing tool
- Baidu Webmaster Tools documentation (ziyuan.baidu.com/college)

