HREFLANG_BUILDER.MD

Hreflang Map Builder

Add your page URLs, choose their languages and optional regions, and generate hreflang tags. Copy HTML tags or download XML sitemaps. No spreadsheet needed.

Your Language Versions

Add the equivalent versions of one page. Choose a language for each URL. Leave region empty unless a version targets a specific country.

PAGE VERSION 1
Script code (optional)
Only use this when the page targets a specific writing script, such as Traditional Chinese (Hant).
    PAGE VERSION 2
    Script code (optional)
    Only use this when the page targets a specific writing script, such as Traditional Chinese (Hant).

      Optional. Use a language selector or the page you show when no language or region matches.

      Download guide (.md)

      URLs are processed for this request only. They are not stored. The tool does not fetch or audit your pages.

      Already have a CSV or Excel file? Import it here (optional)

      Use columns url and hreflang (or language). Optional: region and group. Files are a shortcut, not a requirement. Only the first XLSX worksheet is used.

      CSV: up to 256 KiB. XLSX: up to 1 MiB. Up to 1,000 rows across groups, with 50 variants per group.
      Or paste existing CSV

      Hreflang Map Builder Features

      01

      One row per page version

      Enter a URL and choose its language. Add a country only when the page targets that market. Add or remove rows as needed.

      02

      Language and region checks

      Check locale codes and catch duplicate language and region combinations before you export.

      03

      HTML tags and XML sitemaps

      Generate a complete alternate set with self-references. Copy HTML tags or download a sitemap for each host.

      04

      Optional fallback and file import

      Add an x-default URL if you have a fallback page. Already have a CSV or XLSX? Import it as an optional shortcut.

      How the Hreflang Builder Works

      • Add one row for each language or market version of the same page.
      • Choose a language and, if needed, a region. Add an optional x-default fallback.
      • Generate the tags. Review any warnings, then copy HTML into each page head or deploy the XML sitemap.

      For an English page and its Polish translation, enter both URLs and select English and Polish. Leave region empty unless the content targets a specific country.

      Hreflang Builder Inputs and Assumptions

      • Use this form for equivalent versions of one page, not unrelated pages.
      • Add the same HTML alternate set to every listed page. Each set includes self-references and return links.
      • Use final canonical HTTP or HTTPS URLs. The tool does not fetch pages or test live canonicals, indexing rules, or return links.
      • XML output is split by origin. Submit each sitemap according to the search engine rules for that host.
      • The form supports up to 50 variants, including x-default. Optional CSV and XLSX imports support up to 1,000 rows across groups; choose one group to edit.
      • Import columns: url and hreflang (or language). Optional: region and group. CSV limit: 256 KiB. XLSX limit: 1 MiB; only the first worksheet is used.
      • Page variants are processed on the server for this request. Inputs are not saved or added to application logs. XLSX files are read in your browser; the original file is not uploaded.

      Hreflang Builder Questions

      Should I choose a country for every language?

      No. Leave the region empty for a language version that serves users in all countries. Choose a region only when that page targets a specific market.

      Should I use en-UK or en-GB?

      Use en-GB. UK is not an assigned ISO country code for hreflang. A country code alone is not a language code.

      What is x-default?

      It identifies your fallback page for users whose language or region does not match the other versions. It can be a language selector or an existing page. It is optional.

      Can I import an existing spreadsheet?

      Yes. Open the optional import below the form. Use url and hreflang columns, or url, language, and optional region columns. If your file has several groups, choose the group you want to edit.

      Implementation reference: Google: localized versions of your pages.