Generate a sitemap.xml from a list of URLs
Turn a list of URLs into a valid sitemap.xml with lastmod, changefreq and priority options.
0 / 5,000,000 characters · Updates as you type.
An XML sitemap lists the pages you want search engines to know about. Google and Bing find most pages by following links, but a sitemap helps with new sites, large sites, pages that few other pages link to, and after a redesign. Many site builders generate one automatically; this tool is for everything else: static sites, hand-built pages, a list exported from a crawler or spreadsheet, or a quick sitemap for a new section.
Paste URLs one per line. Each line can carry its own values after the URL: a date (2026-09-01) becomes lastmod, a number between 0 and 1 becomes priority, and a word such as weekly becomes changefreq, so a column export from a crawler works as is. Lines starting with / are resolved against the base URL you set. Fragments (#section) are removed, spaces and non-ASCII characters are percent-encoded, ampersands are escaped as the protocol requires, duplicates are dropped, and lines that are not http(s) URLs are skipped and listed by line number.
About the optional fields, honestly: Google has said it ignores changefreq and priority, and uses lastmod only when it is consistently accurate, so leaving them out is perfectly fine; putting today's date on every URL is worse than no date. A sitemap file may hold at most 50,000 URLs and 50 MB; the generator warns you and stops at the limit. Upload the result to your site, reference it in robots.txt with a Sitemap: line and submit it in Google Search Console. The tool never crawls or fetches anything; it only formats the list you paste.
How to use it
- Paste your URLs, one per line; optionally add a date, priority or change frequency after each.
- If some lines are paths like /about, fill in the base URL.
- Choose whether to add lastmod, changefreq and priority to URLs that have none.
- Download sitemap.xml, upload it to your site root and submit it in Search Console.
Frequently asked questions
Does this crawl my website?
No. It only turns the URLs you paste into sitemap XML. Export a URL list from your CMS, analytics or a crawler, or type them in.
Should I set priority and changefreq?
They are optional. Google says it ignores both; other engines may read them. Accurate lastmod dates are the only optional field Google uses.
Can I mix URLs from different domains?
A sitemap should only list URLs on the host where it is published. The generator warns when your list mixes hosts.
What if I have more than 50,000 URLs?
Split them into several sitemaps of up to 50,000 URLs each and list those files in a sitemap index. The generator writes the first 50,000 and tells you.
Where do I put the file?
Usually at https://your-domain/sitemap.xml. Add "Sitemap: https://your-domain/sitemap.xml" to robots.txt and submit it in Google Search Console and Bing Webmaster Tools.
Related tools
- Generate and test a robots.txt fileBuild robots.txt with presets (including blocking AI crawlers), validation and a URL tester.
- Generate meta tags for SEO and social sharingWrite title, description, Open Graph and X tags with length meters and a Google-style preview.
- Format, minify and check XMLPretty-print or minify XML and check that it is well-formed, with the line and column of any error.
- Preview Open Graph link cardsPaste a page's tags and see how the link may look on Facebook, X, LinkedIn and WhatsApp.
- Remove duplicate linesDelete repeated lines from a list, keeping the first or last occurrence, with case-sensitivity and trimming options.
- URL-encode or decode textPercent-encode text for URLs (encodeURIComponent or encodeURI) or decode an encoded string.