🌐 International SEO

Hreflang Tag Generator

Enter your page URL, choose the languages and regions you target, and get a complete set of rel=alternate hreflang tags with absolute hrefs and an x-default — the exact pattern Google needs to connect your localized pages.

✓ Absolute hrefs + x-default Runs in your browser No signup
Hrefs are auto-built from this pattern. You can override any individual href below.
Generated hreflang tags
hreflanghref (editable)

How to generate hreflang tags

Four steps from one URL to a valid, bidirectional hreflang cluster.

1

Paste your canonical page URL

Enter the absolute URL of the default-language version of the page you are localizing.

2

Choose your URL structure

Pick subdirectory, query parameter or subdomain so hrefs are auto-built in the right shape.

3

Select target languages and x-default

Tick each language or region you publish, add custom codes, and keep x-default for unmatched users.

4

Copy the block onto every URL in the cluster

Paste the full validated set of return tags into the head of every alternate page so the annotations are bidirectional.

Hreflang questions

Yes. Google silently ignores relative hreflang hrefs, which makes the entire language cluster inert. Every href must be a fully-qualified absolute URL including the https scheme and host. This generator always outputs absolute URLs for that reason.
x-default tells Google which URL to serve users whose language or region you have not explicitly targeted. It is strongly recommended — usually pointing at your default or language-selector page. This tool adds an x-default row by default.
Yes — hreflang annotations must be bidirectional. Every page in the set has to list every alternate, including itself, or Google discards the unconfirmed entries. Paste the full generated block on every URL in the cluster.
No. The generator runs entirely in your browser — nothing you type is uploaded or stored. A programmatic hreflang API for build pipelines and CMS plugins is available on the paid plans.

Need this in your build pipeline?

This tool runs entirely in your browser — there is nothing to call and nothing leaves the page. For CI, CMS plugins and bulk localization, a programmatic hreflang API is available on the paid plans.

✓ Free tool: 100% client-side Hreflang API: paid plans

Generate validated hreflang blocks at scale from a single endpoint and wire them straight into your deploy. See plans and quotas on the pricing page.

See API plans →