1. Home
  2. Developer
  3. XML Sitemap Generator

XML Sitemap Generator

Turn a list of URLs into a spec-compliant sitemap.xml you can download.

Runs in your browser · No upload
One URL per line. After a space you can add a last modified date (for example 2026-10-19) per line. Lines starting with # are skipped.
Added in front of lines that have only a path such as "/about". Example: https://example.com
Applied to every URL. A date written on a line wins over this one. Example: 2026-10-19
0.0 to 1.0. Google ignores changefreq and priority, so leaving them empty is fine.
URLs
4
Duplicates skipped
0
Files
1
File size
0.4 KB
sitemap.xml
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <url> <loc>https://example.com/</loc> </url> <url> <loc>https://example.com/about</loc> </url> <url> <loc>https://example.com/blog/first-post</loc> <lastmod>2026-10-01</lastmod> </url> <url> <loc>https://example.com/search?q=sitemap&amp;page=2</loc> </url> </urlset>

Upload the file to your site root (for example https://example.com/sitemap.xml) and list it in robots.txt with a Sitemap: line or in Search Console.

How to use

  1. Paste the URLs you want in your sitemap into URL list, one per line. Some example URLs are already filled in to get you started.
  2. If a line has only a path such as /about, enter your site in Base URL, for example https://example.com.
  3. Add a last modified date (lastmod) if you like. The Today button fills it in. A date written on an individual line, as in URL 2026-10-19, takes priority over it.
  4. Check the XML, then press Save sitemap.xml and upload the file to the root of your site.

Input format

Input What happens
https://example.com/about Used as is
https://example.com/blog/post 2026-10-01 The date after the space becomes that URL’s lastmod
/pricing Joined to the base URL if there is one, otherwise an error
# note or a blank line Skipped
The same URL again Added once, and the skipped count is shown
ftp:// or a malformed URL Reported with its line number and left out

URLs are cleaned to a standard form. https://example.com becomes https://example.com/, non-ASCII paths are percent-encoded, anything after # is dropped, and the host name is lowercased.

Producing a valid file

  • XML escaping: & in a URL becomes &amp;, < becomes &lt;, > becomes &gt;, and quotes become &quot; and &apos;. A URL containing ?a=1&b=2 breaks the XML if it’s pasted in raw, but this tool handles that for you.
  • The 50,000 URL and 50 MB limits: one sitemap file holds at most 50,000 URLs and 50 MB uncompressed. With more URLs the tool splits them into sitemap-1.xml, sitemap-2.xml and so on, plus a sitemap.xml index (sitemapindex) that lists them. Several files download as a ZIP.
  • lastmod format: a date like 2026-10-19, or a full time like 2026-10-19T09:30:00+09:00. Dates that don’t exist, such as February 30, are flagged as errors.
  • One host: a sitemap should list only URLs of the site it is hosted on. You get a warning when hosts are mixed.

Do I need changefreq and priority?

No. Both are optional, and Google says it ignores them. What Google can use is an accurate lastmod. It’s trusted when it only changes on days the content really changed, so stamping today’s date on every URL isn’t a good idea. If you’re not sure, leave lastmod empty as well.

After you generate it

  1. Upload sitemap.xml to your site root (https://yoursite/sitemap.xml).
  2. Add a Sitemap: https://yoursite/sitemap.xml line to robots.txt. The robots.txt Generator can build one.
  3. Submit the address in the sitemap section of Google Search Console, and of Naver Search Advisor if you target Korea.
  4. To check format and limits after uploading, use the Sitemap Checker.

A sitemap is a hint that tells search engines which URLs exist. It doesn’t guarantee they’ll be indexed. Page quality and internal links matter more.

FAQ

Which URLs belong in a sitemap?

Only URLs you want to show up in search results, that return a 200 status, aren’t set to noindex and don’t redirect. Login screens, carts and internal search results are usually left out.

What if I have more than 50,000 URLs?

The tool splits them into several files and builds an index sitemap.xml. Upload all of the files to the same place, and submit only the index file in Search Console.

Can a URL contain an ampersand?

Yes. It’s written as &amp; in the XML so the file stays valid. Just type your URLs as you normally would.

Don’t WordPress and shop platforms already make a sitemap?

Many do. This tool is handy for static sites, hand-coded sites, or when you want a sitemap of a hand-picked list of URLs.

Are my URLs sent anywhere?

No. Your list is processed only in your browser and never sent to a server.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.