— SEO & GEO

Hreflang Tag Generator

Map each language and region to its URL and get clean, copy-ready hreflang link tags — including x-default — in seconds.

— What it does

The Hreflang Tag Generator is a free tool that builds the rel="alternate" hreflang link tags search engines use to serve the right language or regional version of a page. Add a row per locale with its language/region code and matching URL, optionally include an x-default fallback, and copy the generated HTML straight into your <head>. It runs entirely in your browser, so nothing you type is uploaded.

  • Add unlimited language/region rows like en, en-GB or fr-CA, each with its own URL.
  • Optional x-default row for an unmatched-locale fallback page.
  • Soft validation flags malformed codes and missing URLs before you ship.
  • Runs entirely in your browser — your URLs are never uploaded to a server.

How to use it

1

Add a row per locale

Enter a language or language-region code (for example en, en-GB, fr) and the full URL of that page version.

2

Add x-default if needed

Toggle the x-default row and point it at the page shown when no language matches a visitor.

3

Copy the hreflang tags

The link tags update as you type. Copy the HTML and paste it inside the <head> of every alternate page.

Frequently asked

What is an hreflang tag?
An hreflang tag is a rel="alternate" link element that tells search engines which URL serves a given language or region. Each alternate page should list every language version, including itself, so engines can map the set.
What is x-default used for?
x-default marks the fallback page shown when a visitor’s language or region does not match any of your defined locales. It is commonly used for a language selector or a global default page.
What format should the codes use?
Use a two-letter ISO 639-1 language code (en, fr, de), optionally followed by a hyphen and an ISO 3166-1 region code (en-GB, pt-BR). The generator flags codes that do not match this pattern.
Is anything I enter uploaded?
No. The tags are built locally in your browser with JavaScript. Your URLs and locale codes are never sent to a server, so the tool is safe for unreleased or private pages.
— Built by saavos

These tools are free. So is the first version of your agent.

saavos is the AI agent that lives on your website — themed to match your design, answering visitors from your own content, and telling you what they actually want to know. Paste your URL and see it answer, before you install anything.

Make my site feel alive