sitemap.xml from URLs or a site folder
- Free
- No sign-up
- No upload
- Batch
- Works offline
Tool facts
- Opens
TXTHTMLXML- Saves as
XMLZIP- Price
- Free, no sign-up, no watermark
- Are files uploaded?
- No. Everything is processed in this browser, on your device.
- Batch processing
- Yes, several files at once
- Offline use
- Works without a connection once this page has loaded
- Built with
- fflate
- Browser
- A recent Chrome, Edge, Firefox or Safari, on computer or phone.
- Limits
- Each sitemap file holds at most 50,000 URLs and 50 MB; URLs of 2,048 characters or more are left out.
Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.
About XML Sitemap Generator
XML Sitemap Generator turns a list of URLs, or the folder of a built static website, into a sitemap.xml that follows the sitemaps.org 0.9 protocol. Paste one URL per line, paste HTML (the href of every link is taken) or paste an old sitemap, and each address is cleaned: relative paths are completed with your base URL, non-ASCII characters are percent-encoded as UTF-8 per RFC 3986 while existing %XX escapes stay, IDN hosts become punycode, #fragments are dropped, the query string is kept, and & < > ' " are escaped for XML. Duplicates are removed after this normalisation.
In folder mode you pick or drop the output folder of a static site generator such as Hugo, Jekyll, Astro or Eleventy. Each .html file becomes one URL (about/index.html becomes /about/, blog/post.html becomes /blog/post or keeps .html if you prefer) and lastmod can come from the file's modification date; only names and dates are read, never file contents. More than 50,000 URLs or 50 MB is split into sitemap-1.xml, sitemap-2.xml and so on plus a sitemap-index.xml, downloaded together as a ZIP. Nothing is fetched: the tool does not crawl live sites.
XML Sitemap Generator runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.
How to use XML Sitemap Generator
- Paste your URLs under Paste URLs, or switch to Choose folder and pick or drop your site's build folder.
- Type the site's Base URL, for example https://example.com, in Options.
- Choose a lastmod source, optional changefreq and priority, and exclude patterns such as */404*.
- Check the URL list: each row says OK, what was changed, or why it was left out.
- Click Download sitemap.xml (or Download ZIP when the sitemap was split) and add the Sitemap line to robots.txt.
Frequently asked questions
Why were some of my URLs left out?
A sitemap may only list URLs with the same protocol and host as the sitemap itself, so with Only keep the same site switched on, a URL on another host, or on http when the site is https, is excluded. The site comes from the Base URL, or from the first URL when the base is empty. The list also marks duplicates after normalisation, matches of an exclude pattern, schemes other than http and https (mailto:, javascript:, ftp:), relative paths with no base URL, and URLs of 2,048 characters or more.
How are Chinese characters, spaces and & handled?
Characters RFC 3986 does not allow, such as Chinese or accented letters, spaces, | or { }, are written as UTF-8 percent escapes, so /blog/你好 becomes /blog/%E4%BD%A0%E5%A5%BD. Escapes already present are kept with capital hex digits, escaped letters and digits like %41 are decoded, and a lone % becomes %25. Inside the XML, & is written as & and ' as ' (< > and " are escaped too), so search?q=a&page=2 appears as search?q=a&page=2.
What happens with more than 50,000 URLs?
The sitemaps.org limits are 50,000 URLs and 50 MB (52,428,800 bytes, uncompressed) per file. When either would be exceeded, the URLs are split in order into sitemap-1.xml, sitemap-2.xml and so on, and a sitemap-index.xml lists them at the root of your site, such as https://example.com/sitemap-1.xml. Download ZIP packs all files; upload them to the site root and submit the index in Search Console.
Should I fill in changefreq, priority and lastmod?
Google documents that it ignores changefreq and priority, so both are left out by default; if you pick a value it is written for every URL. Google does use lastmod when it is consistently accurate. Today writes the current date, File date uses each .html file's modification date, and Per line reads a date written after the URL on the same line, such as 2026-11-30 or 2026-11-30T10:05+08:00 (seconds are added because the sitemap schema requires them).
Can it crawl my website, and does it work on phones?
No crawling: a web page is not allowed to download pages from other sites. Use your build folder instead, or paste the HTML of a page with your navigation, or an old sitemap, since href and <loc> values are extracted. Folder picking relies on the browser's directory picker and folder drag and drop, which desktop Chrome, Edge, Firefox and Safari support; many phone browsers cannot choose folders, so paste URLs there. Only file names and dates are read and nothing is uploaded.