Sitemap Generator
Paste a list of URLs and get a sitemaps.org XML file: & escaped, non-ASCII hosts and paths encoded, duplicates dropped, and lastmod written only on the lines where you add a date. Warnings flag non-HTTPS, local and mixed hosts, and the 50,000-URL and 50MB limits.
Runs in your browserNothing you type is sent to a server.
Input and result
What you type is kept in this browser only. Reopen to restore your last run.
Use cases
- Turn a list of final, canonical URLs into a sitemap.xml you can upload to the site root and submit in Search Console and Bing Webmaster Tools.
- Add a date after a URL to write lastmod for that page only, so you report real changes instead of stamping every page with today.
- Paste URLs with Chinese, Korean or other non-ASCII hosts and paths and get them encoded the way the protocol requires: punycode for the host, percent-encoding for the path.
- Catch the mistakes that make a sitemap rejected or ignored: an unescaped &, a relative URL, an ftp: or mailto: line, a localhost entry, a second host.
- See the file's size and URL count against the 50,000-URL and 50MB limits before you decide whether to split it.
- Copy a search discovery report - counts, hosts, warnings and a submission checklist - for a handoff note.
Examples
- Common input
https://www.bobob.app/ https://www.bobob.app/tools/json-formatter 2026-11-28- Turn a canonical URL list into sitemap XML, with lastmod only where you add a date, plus a discovery submission report.
- Typical output
XML sitemap with escaped and encoded URLs, URL count, XML size, and warnings for hosts, HTTPS, duplicates and limits.- Use this as a quick sanity check before copying results.
- lastmod on one line only
https://www.bobob.app/ https://www.bobob.app/tools/json-formatter 2026-11-28- The second line gets <lastmod>2026-11-28</lastmod>; the first gets none. A date is written only where you put one.
- Non-ASCII host and path
https://例子.cn/产品/手册- Becomes https://xn--fsqu00a.cn/%E4%BA%A7%E5%93%81/%E6%89%8B%E5%86%8C - punycode for the host, percent-encoding for the path, as the sitemap protocol requires.
- Ampersand in a query
https://example.cn/a?x=1&y=2- Written as https://example.cn/a?x=1&y=2 inside <loc>. An unescaped & makes the whole file invalid XML.
Common mistakes
- A URL without https:// or http:// in front is not a sitemap URL. The protocol asks for absolute URLs, so a line like example.com/page is dropped and its line number is listed.
- A date that is not W3C Datetime - 2026/11/28, 28-11-2026, or a time without a time zone - is not written. The URL stays; only its lastmod is left out.
- One sitemap file is meant for one host. Mixing www and the bare domain, or two sites, earns a warning because the URLs outside the sitemap's own host can be ignored.
- A sitemap lists pages; it does not make them indexable. A URL that redirects, returns 404 or carries noindex is still not indexed after you submit it.
Before you copy
- 1Every URL is the final canonical address and returns 200.
- 2Only one host appears in the file.
- 3lastmod dates are real change dates, not today's date on everything.
- 4robots.txt has a Sitemap: line pointing at the uploaded file.
Sources
The sitemaps.org protocol requires UTF-8, entity escaping for & ' " < and >, and absolute URLs that start with the protocol. Each file holds at most 50,000 URLs and 50MB (52,428,800 bytes) uncompressed, and lastmod uses W3C Datetime.
Basis: sitemaps.org protocol 0.9
Google ignores priority and changefreq
Google's documentation says it ignores priority and changefreq values and uses lastmod only when it is consistently and verifiably accurate. So this tool writes loc, plus lastmod on the lines where you gave a date.
Basis: Google Search Central, version updated 2026-11-27
Bing reads lastmod as a freshness signal
The Bing Webmaster Blog says a sitemap file can hold up to 50,000 URLs and that lastmod influences how quickly updates are picked up. A date stamped on pages that did not change makes that signal wrong.
Basis: Bing Webmaster Blog, July 2025
FAQ
Does Sitemap Generator upload my input?
No. This tool runs in your browser unless the privacy badge explicitly says a server route is required.
Can I use this for production secrets?
Avoid pasting sensitive production data into any website. Prefer local test data or redacted payloads.
Should sitemap URLs redirect?
Prefer final canonical URLs that return 200. Avoid listing URLs that immediately redirect or point at private/local hosts.
Why is there no priority or changefreq?
Google documents that it ignores both tags, so the generator writes only loc and, where you give a date, lastmod.
Should every URL get today's date as lastmod?
No. Google uses lastmod only when it is consistently accurate, and Bing reads it as a freshness signal. Stamping today on pages that did not change sends both a false signal, so the tool writes lastmod only on lines where you typed a date.
Does a valid XML sitemap guarantee indexing?
No. It helps discovery. Use the report to hand off URL count, host consistency, warnings, and submission follow-up before waiting for search processing.