ToolsWhisper
SEO tools

XML Sitemap Generator

Create a valid XML sitemap from a list of URLs, split automatically when large.

  • Runs in your browser
  • Nothing is uploaded
  • Free, no sign-up
URLs, one per line (add a date after a comma if you have one)
sitemap.xml · 545 B
URLs
6
Duplicates dropped
0
Files
1
Limit per file
50,000

Upload the file to your site's root, reference it in robots.txt with a Sitemap: line, and submit it in Search Console. Google reads lastmod but ignores priority and changefreq, so they are not written.

About this tool

Paste your URLs, one per line, optionally with a last-modified date, and download a valid sitemap.xml. Addresses are checked and escaped, repeats are removed, and a list too long for one file is split into several with an index that points to them.

How to use it

  1. Paste your URLs, one per line. Add a date after a comma where you have one.
  2. Choose whether to add a last-modified date to URLs that lack one.
  3. Download the file, upload it to your site's root and reference it in robots.txt.

What belongs in a sitemap

A sitemap is a list of the URLs you want search engines to index, so it should contain only those:

  • Canonical URLs that return a 200 status.
  • Not redirected URLs, pages with a noindex tag, pages blocked by robots.txt, or duplicate variants such as tracking-parameter URLs.
  • Absolute URLs with the scheme, all on the same host as the sitemap. A sitemap for example.com cannot list www.example.com.

A sitemap full of URLs that are redirected or blocked tells Google your list cannot be trusted, and it will pay less attention to it.

lastmod, priority and changefreq

lastmod is the only optional tag Google says it uses, and only when it proves reliable: it should be the date the page's content last changed in a meaningful way. Setting it to today for every URL teaches Google to ignore it, so use the Today option sparingly.

priority and changefreq are ignored by Google, so this tool does not write them.

Limits, and how large lists are handled

One sitemap file may hold 50,000 URLs and be 50 MB uncompressed. Beyond that you need several files and a sitemap index listing them, which is limited in turn to 50,000 sitemaps.

When your list is longer than 50,000 URLs, the tool writes sitemap-1.xml, sitemap-2.xml and so on, plus a sitemap.xml index. Submit the index and the search engines find the rest.

Putting it to work

Upload the file to the root of your site, where it can list any URL on it. Then tell crawlers where it is:

  1. Add a line to robots.txt: Sitemap: https://example.com/sitemap.xml. The robots.txt generator writes it for you.
  2. Submit the address in Google Search Console, under Sitemaps, and in Bing Webmaster Tools.

A sitemap helps discovery, particularly for new or poorly linked pages. It does not guarantee a page is indexed. For a site that changes constantly, generate the file on the server instead of by hand.

Frequently asked questions

Do I need a sitemap?

Small sites with good internal links are usually found without one. A sitemap helps most with large sites, new sites, and pages that are hard to reach by following links.

Why are my URLs flagged as being on different hosts?

A sitemap may only list URLs from the host it is served from. www.example.com and example.com are different hosts, as are http and https versions treated by some tools.

Can I include images, videos or hreflang annotations?

This tool writes standard URL sitemaps. For hreflang entries, use the hreflang generator's sitemap output.

Is my URL list uploaded?

No. The sitemap is built in your browser and downloaded directly.

Related tools