XML Sitemap Generator — Create sitemap.xml From URLs
A sitemap helps Google discover and index your pages faster, especially new pages or pages with few links. Turn a URL list into sitemap.xml in your browser. Steps: paste one https URL per line with optional lastmod / changefreq / priority, preview the generated XML with proper escaping, and copy it to your site root. Shows protocol rules and limits. Nothing is uploaded. Example: 3 URLs → urlset with three url entries.
Each line: URL, or URL | lastmod (yyyy-MM-dd), or URL | lastmod | changefreq | priority. Example: https://example.com/page | 2026-08-01 | weekly | 0.8
How it works
Paste your URL list, one per line. You can add optional metadata after a pipe: lastmod (yyyy-MM-dd), changefreq and priority. The page parses each line, escapes reserved characters, checks that every URL starts with http(s), and builds a urlset following the sitemap protocol. Copy the XML to your site root, then reference it from robots.txt or submit it in Search Console.
Protocol rules and limits
These are the rules from the sitemap protocol and Google that this generator follows.
- Required: every <url> must contain a <loc> with the full URL. lastmod, changefreq and priority are optional.
- lastmod format: a W3C date (yyyy-MM-dd) or full datetime such as 2026-08-01T12:00:00+00:00. Other formats are ignored or rejected.
- changefreq is a hint, not a signal. Google ignores it, so filling it does not change how often your pages are crawled.
- Limits: one sitemap can hold at most 50,000 URLs and 50MB after compression. Beyond that, split and use a sitemap index.
Example
Sample input: https://example.com/ and https://example.com/products with lastmod 2026-08-01, plus https://example.com/about — the output is a urlset with three url entries, the middle one carrying a lastmod element.
Good fits
- New sites: generate a first sitemap.xml from your URL list and submit it in Search Console.
- Updated content: add lastmod for pages that changed recently so crawlers can pick up the freshness signal.
- Discovery: point robots.txt at your sitemap URL so crawlers find it without waiting for a submission.
Frequently asked questions
What is the URL limit for one sitemap?
50,000 URLs or 50MB (uncompressed). The generator warns you when your list exceeds 50,000 so you can split it and use a sitemap index file that points to each part.
What lastmod format is required?
A W3C date (yyyy-MM-dd) or a full datetime like 2026-08-01T12:00:00+00:00. The generator flags lines whose lastmod does not match so you can fix them before saving.
Does changefreq affect crawling?
No. Google ignores changefreq; it is a hint for other consumers. Priority is also ignored by Google. lastmod is the metadata worth keeping accurate.
How is this different from IndexNow?
IndexNow pings participating search engines about a URL change right away, while a sitemap is a standing list that crawlers poll. Use both: IndexNow for immediate notification, sitemap for ongoing discovery.
Questions or feedback
Something unclear, broken, or missing? Draft a message below — we read every note about these tools.