Skip to content
Free tool

Hreflang Tag Generator & Validator

Generate and validate hreflang tags for multilingual SEO in HTML, XML sitemap, and HTTP header formats.

01Your site

Pick the locales your site serves and this builds the reciprocal hreflang set for each of them, x-default included, then flags the mistakes Google silently ignores: wrong code formats, duplicate locales, and a missing fallback.

The root URL of your site. Locale codes will be appended as path segments (e.g. /en/).

EnglishFrenchGerman

Shown to users whose language does not match any locale tag. Usually your default or English locale.

02Tags
HTML <head> snippet
<link rel="alternate" hreflang="en" href="https://example.com/en/" /><link rel="alternate" hreflang="fr" href="https://example.com/fr/" /><link rel="alternate" hreflang="de" href="https://example.com/de/" /><link rel="alternate" hreflang="x-default" href="https://example.com/en/" />
Validation
  • Configuration looks good — no issues detected.
How to use

Paste these tags inside the <head> element of every localised page — each page must self-reference its own locale and include all siblings.

Lefine

Lefine auto-generates hreflang for your localized app — no manual tag management required.Get started for free

FAQ

Frequently asked questions

More tools

Free tools for the rest of your i18n workflow: locale data, ICU messages, file formats and hreflang.