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.
| hreflang | href (editable) |
|---|
How to generate hreflang tags
Four steps from one URL to a valid, bidirectional hreflang cluster.
Paste your canonical page URL
Enter the absolute URL of the default-language version of the page you are localizing.
Choose your URL structure
Pick subdirectory, query parameter or subdomain so hrefs are auto-built in the right shape.
Select target languages and x-default
Tick each language or region you publish, add custom codes, and keep x-default for unmatched users.
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
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.
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 →