XML Sitemap Generator
Turn a list of URLs into a valid sitemap.xml with optional lastmod, changefreq and priority, ready to submit to search engines.
You can also paste or open an existing sitemap.xml to clean it up.
Google ignores changefreq and priority, and only trusts lastmod when it is accurate. Leave them out unless another search engine needs them.
✓ All URLs are valid.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com/</loc>
</url>
<url>
<loc>https://www.example.com/about/</loc>
</url>
<url>
<loc>https://www.example.com/blog/</loc>
</url>
<url>
<loc>https://www.example.com/blog/how-to-choose-a-mug/</loc>
</url>
<url>
<loc>https://www.example.com/products/?category=mugs&color=blue</loc>
</url>
</urlset>
About this tool
An XML sitemap is a file that lists the URLs you want search engines to find, optionally with the date each page last changed. It does not improve rankings by itself, but it helps crawlers discover new pages, pages deep in your navigation, and pages on large or new sites that have few links yet.
This generator turns a plain list of URLs into a sitemap that follows the sitemaps.org protocol. It removes duplicates and fragments, skips invalid lines, escapes characters such as & correctly, warns when URLs come from different hosts, and enforces the 50,000-URL limit. You can also paste an existing sitemap to clean it up or add pages.
How to use XML Sitemap Generator
- Paste your URLs, one per line, or open a text file or existing sitemap.xml.
- Choose whether to add lastmod (today or a specific date). Leave changefreq and priority out unless you have a reason.
- Check the warnings for invalid, duplicate or foreign-host URLs.
- Download sitemap.xml, upload it to your site root and submit it in Google Search Console and Bing Webmaster Tools, or reference it from robots.txt.
Examples
Ampersands are escaped
https://example.com/?a=1&b=2
<loc>https://example.com/?a=1&b=2</loc>
An unescaped & makes the XML invalid, and search engines reject the whole file.
Duplicates and fragments removed
https://example.com/a and https://example.com/a#top
One entry: https://example.com/a
A #fragment points into the same page, so it is not a separate URL.
Sitemap rules worth knowing
- A sitemap may contain at most 50,000 URLs and 50 MB uncompressed. Larger sites split URLs across several sitemaps and list those in a sitemap index file.
- Use absolute, canonical URLs only: the https version, the preferred host (with or without www) and no tracking parameters. Do not list redirects, 404 pages or noindex pages.
- Google ignores changefreq and priority. It uses lastmod only when it is consistently accurate, so set it to the date the content really changed, not the date the file was generated.
- A sitemap can only list URLs from its own host unless you verify ownership of the other hosts in Search Console.
- You can gzip the file (sitemap.xml.gz) to save bandwidth; the 50 MB limit applies to the uncompressed size.
Frequently asked questions
Everything you need to know about this tool and data security.
Does every website need a sitemap?
Small sites whose pages are all linked from the navigation are usually found without one. Sitemaps matter most for large sites, new sites with few backlinks, and sites with many pages not reachable through links.
How do I tell search engines about my sitemap?
Submit it in Google Search Console (Sitemaps report) and Bing Webmaster Tools, and add a line "Sitemap: https://example.com/sitemap.xml" to robots.txt so other crawlers find it too.
Can I get the URL list automatically?
This tool works from a list you provide, because a browser cannot crawl other websites. Most CMSs (WordPress, Shopify, Wix) already generate sitemaps; export your URLs from the CMS, an analytics report or a crawler and paste them here.
Should I include images and videos?
Google supports image and video extensions to the sitemap format, but they are optional. For most sites, listing the page URLs is enough.
Is my data safe when using this tool?
Yes, 100% safe. This tool operates entirely inside your web browser using client-side JavaScript and WebAssembly. Your data never touches any external server.
Related Tools
Create a robots.txt file with crawl rules, sitemap links and AI crawler blocking, and test any URL against it.
Remove duplicate lines, sort, filter, trim and number lines of text.
Percent-encode or decode URLs and query strings, and inspect every part of a URL.
Featured Projects tech-fun.net
Explore more AI & productivity tools
Nihongo GameBox
Master Japanese typing, Kana, and JLPT N5–N1 vocabulary through interactive retro arcade games.
ResumeGPT
Tailors CVs and cover letters to every job opportunity with a multi-agent LLM pipeline, job tracking, and scheduled discovery.
CollectMind
Turns your bookmarks into a searchable AI knowledge base — entirely on-device, powered by Chrome's built-in Gemini Nano.