← All text tools

Hreflang Sitemap Generator

Build an XML sitemap with xhtml:link hreflang alternates for each language version of a page, with reciprocal links and an optional x-default.

  • Free
  • No sign-up
  • Works on any device

About Hreflang Sitemap Generator

Hreflang tells search engines which language or regional version of a page to show. In a sitemap, each URL lists all its alternates with xhtml:link elements, itself included. Enter one block per page with a language code and a full URL on each line, and this tool writes the urlset with the xhtml namespace, adds the reciprocal links and, if you want, an x-default entry. It checks the language codes, rejects duplicates in a block and warns when a block has a single version. A sitemap is limited to 50,000 URLs and 50 MB uncompressed.

How to use Hreflang Sitemap Generator

  1. Write one block per page, one language and URL per line, with an empty line between blocks.
  2. Choose whether to add an x-default entry for each page.
  3. Download the XML, upload it to your site and submit it in Search Console.

Why use this tool?

Also known as

Frequently asked questions

Why must every version list all the others?

Hreflang works only when pages confirm each other. If page A points to B but B does not point back, search engines may ignore the annotation.

What is x-default for?

It names the page to show when no language matches the visitor, often an English page or a language selector.

Which language codes are valid?

Use ISO 639-1 language codes such as en or es, optionally with an ISO 3166-1 region like pt-BR. A region alone, such as UK, is not a language.

Is Hreflang Sitemap Generator free?

Yes. Hreflang Sitemap Generator on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put Hreflang Sitemap Generator on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

Related tools