Developer tool

XML Sitemap Generator from URLs

Paste one absolute URL per line. The tool checks the URLs and creates XML locally.

Runs in your browser. No upload.

Values are processed locally in this browser.

Result

—

About this tool

XML Sitemap Generator from URLs made simple.

This does not crawl pages, test indexability or verify canonical URLs. Include only your preferred public URLs and validate the result before deployment.

Guide

Using XML Sitemap Generator from URLs

The XML Sitemap Generator turns a list of web addresses into a sitemap file in the standard XML format. You paste one full address per line, press Calculate and copy the XML. It checks that each line is a valid http or https address and lists each one only once. It does not visit your site, find pages on its own, test whether pages can be indexed, or add dates or priorities.

How to use it

  1. Paste your page addresses into the box, one per line. Each must start with http:// or https://. Use the version of the address that you want search engines to prefer.
  2. Press Calculate. The tool checks every line, removes repeats and writes the XML.
  3. Copy the result and save it as a UTF-8 file named sitemap.xml. Upload it to your site, in the folder that covers the pages you listed.
  4. Tell search engines where it is, by submitting it in a webmaster tool or adding a Sitemap line to your robots.txt file, then open the file in a browser to see that it loads.

Worked examples

Three lines with one repeat

You enter
Urls
https://example.com/ https://example.com/about https://example.com/about
You get
Url entries
https://example.com/; https://example.com/about

The second /about line is a repeat, so it is listed once. The result is an XML document with a urlset element and one url entry, each holding a loc tag, for every address that is left.

Run through the tool’s own code.

A query string and a non-English letter

You enter
Urls
https://example.com/search?q=a&page=2 https://example.com/Café
You get
Loc1
https://example.com/search?q=a&page=2
Loc2
https://example.com/Caf%C3%A9

The ampersand is written as & because XML needs it escaped, and the letter é is turned into %C3%A9. Both changes keep the file valid and the addresses working.

Run through the tool’s own code.

A line with no https

You enter
Urls
example.com/about
You get
Message
Page must be a complete URL.

Each line must be a complete address with its protocol. A line without http:// or https:// stops the whole run with this message. Addresses that contain a username or password are also refused.

Run through the tool’s own code.

When it helps

  • Make a first sitemap for a small hand-built site with a short list of pages.
  • Turn a list of pages exported from a spreadsheet into sitemap XML.
  • Create a quick sitemap for a temporary campaign site.
  • Clean a list of addresses that has repeats before it goes into a sitemap.

Limits to keep in mind

  • You can paste 1 to 5,000 addresses per run. The sitemap standard allows up to 50,000 URLs and 50 MB in one file, so larger sites need several files and an index.
  • The tool does not crawl or test anything. It cannot tell whether a page exists, redirects, is blocked, or is set to noindex.
  • Each entry has only the loc tag. There is no lastmod, changefreq or priority field. Google says it ignores priority and changefreq, and uses lastmod only when it is accurate.
  • Mixed hosts, mixed http and https, and addresses with a # part are all accepted without a warning. The standard says every URL in a sitemap must come from one host.

Tips

  • List only public pages you want in search results. Leave out redirects, duplicate versions and pages set to noindex.
  • Use one host and one protocol throughout, the same one you have chosen as canonical for your site.
  • Delete any # part from an address before you paste it, since the tool keeps it in the output.

Sources

Common questions

About XML Sitemap Generator from URLs.

Where do I put the sitemap file?

Upload it to your site, usually in the root as /sitemap.xml. The sitemap standard says the location of the file decides which addresses it may list, so a file in /shop/ can only list addresses that start with /shop/.

How many addresses can one sitemap hold?

The sitemap standard and Google both allow up to 50,000 URLs and 50 MB uncompressed in one file. This tool stops at 5,000 per run, so split a bigger list into several runs and several files.

Does the tool crawl my website?

No. It only works with the list you paste. It never opens the addresses, so it cannot find new pages or check them. Use a crawler or your site's own page list to build the input.

Do I need lastmod, priority or changefreq?

They are optional, and this tool does not write them. Google ignores priority and changefreq, and uses lastmod only if it is consistently accurate. A plain list of loc entries is a valid sitemap.

Why were some of my lines removed?

Addresses are tidied by the browser first, for example a bare domain gets a trailing slash and the host is made lower case, and repeats are then listed once. So HTTPS://Example.COM and https://example.com/ become one entry.

How do I tell Google about the sitemap?

Google lists three ways: submit it in Search Console, use the Search Console API, or add a line such as Sitemap: https://example.com/sitemap.xml to your robots.txt file. Then check Search Console for errors.

Is my list of addresses uploaded?

No. The page says the tool checks the addresses and creates the XML locally. The addresses are only read as text and are not opened.

How do I use XML sitemap generator?

Paste one absolute URL per line. The tool checks the URLs and creates XML locally.

Is my data uploaded to a server?

No. This tool runs locally in your browser. Your input is not uploaded.