SEO

Hreflang Generator

Generate hreflang link tags for multilingual pages.

All tools

Locales

Tags

<link rel="alternate" hreflang="en" href="https://example.com/en/tools">
<link rel="alternate" hreflang="id" href="https://example.com/id/tools">
<link rel="alternate" hreflang="x-default" href="https://example.com/tools">

Frequently asked questions

What is the difference between hreflang and a canonical tag?
Canonical tells search engines which version of duplicate content to index, while hreflang tells them which language or regional variant to serve to which audience. Each localized page should self-canonicalize and cross-reference the others with hreflang.
Do hreflang annotations need to be reciprocal?
Yes. If page A points to page B with an hreflang tag, page B must point back to page A or the relationship is ignored. Missing return tags are the most common hreflang error in Search Console.
When should I use x-default?
Use hreflang="x-default" for a fallback page that serves users whose language or region does not match any explicit variant, typically a language selector or an English default.