Website & SEO

Hreflang Tag Generator

Build hreflang link tags, XML sitemap entries or HTTP headers for your language and country versions, with code checks.

In the browser

About this tool

Build hreflang link tags, XML sitemap entries or HTTP headers for your language and country versions, with code checks.

Each line pairs a language code (ISO 639-1, optionally with a region such as es-MX) with the full URL of that version. Codes are normalised (en-gb → en-GB), duplicates and invalid lines are skipped, and an optional x-default URL is added.

Example: Language versions — one per line: code and URL = en https://example.com/ es-mx https://example.com/mx/ bad line, x-default URL (optional) = https://example.com/, Output format = HTML link tags → Versions included = 3, Lines skipped = 1.

Put the same set of tags on every language version. Hreflang does not translate pages or redirect visitors.

Quick steps

  1. Fill in the fields you need — empty optional fields are left out.
  2. Press Generate (or Try an example to see how it works).
  3. Copy or download the result and paste it into your site.

Everything runs in your browser. Nothing you type is sent to 1CLIK.

FAQ

How does the Hreflang Tag Generator work?

Each line pairs a language code (ISO 639-1, optionally with a region such as es-MX) with the full URL of that version. Codes are normalised (en-gb → en-GB), duplicates and invalid lines are skipped, and an optional x-default URL is added.

What should I keep in mind?

Put the same set of tags on every language version. Hreflang does not translate pages or redirect visitors.

Is my data sent anywhere?

No. What you type stays on your device; the page only shows the result.

A useful next step

Site policies: Privacy · Terms