Skip to content
Web & InternetLocal · Stays on device

Hreflang Tag Generator

Generate hreflang alternate links for language and regional versions of a page, as HTML, an HTTP header or sitemap XML.

  • Works on desktop and phone
  • Free to use
  • No sign-up or watermark
hreflang-tag-generatorOn this device
1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
6
7
8
9
10

Not yet professionally reviewed. This tool’s formulas and wording have not been checked by a qualified professional. Use the results as an estimate and verify anything important.

Guidance only; search engines decide how they crawl and rank pages. Check changes in your search console after deploying.

About this tool

List each language or regional version of a page with its URL and an optional x-default, and get the alternate links in three forms: <link> tags for the HTML head, an HTTP Link header (useful for PDFs) or <xhtml:link> entries for an XML sitemap.

Each code is checked as a BCP 47 tag (with the classic UK-instead-of-GB mistake caught), URLs must be absolute, duplicate languages are flagged and a missing x-default is noted. Every version must carry the full set of links, including one to itself. Everything runs in your browser: nothing you paste or type is uploaded, and no website, DNS server or API is contacted.

  1. Input

    Your code or text

    Pasted or opened from a file

  2. Processing

    Processed in this browser

    Instant, in-browser. Nothing is uploaded.

  3. Output

    Your result

    Ready to download or copy

Local processing pipelineInstant, in-browser

How to use it

  1. 1

    Add each language/region version and its absolute URL.

  2. 2

    Set the x-default URL.

  3. 3

    Fix any issues, then copy the HTML, header or sitemap output.

Zero-upload architecture

How to use Hreflang Tag Generator for free, with no upload

Free, with no sign-up or watermark · Your files stay on your device

  1. 1

    Open Hreflang Tag Generator

    Launch the app and add your file. There is nothing to install and no account to create.

  2. 2

    Work through it

    Set the x-default URL.

  3. 3

    Get your result

    Fix any issues, then copy the HTML, header or sitemap output.

All 26 web tools
  • Local

    Language Locale Tag Builder

    Build and check BCP 47 language tags such as hi-IN or zh-Hant-TW, see their names, likely script and region, and how browsers format dates and numbers for them.

    Open tool
  • Local

    Sitemap Index Builder

    Create a sitemap index XML that lists several sitemap files, with URL, date and same-site checks.

    Open tool
  • Local

    Canonical URL Planner

    Group URL variants (http/https, www, slashes, tracking parameters) under one canonical URL and get the rel=canonical tags.

    Open tool
  • Local

    UTM Link Builder

    Build campaign-tagged links with UTM parameters, one at a time or in bulk, with tidy formatting.

    Open tool