SEO Tools
XML Sitemap Generator
Paste URLs one per line, optionally with a date, and get a valid sitemap.xml with lastmod. Duplicates and # fragments go and relative paths are completed.
How to use XML Sitemap Generator
Paste one URL per line and, if you like, a YYYY-MM-DD date after it for lastmod. Relative paths such as /about are completed from the site address. The XML updates as you type, ready to save as sitemap.xml.
- Paste your URLsEnter one URL per line. Add a space and a date such as 2024-05-01 to set that page's lastmod.
- Choose the optional tagsSet the site address for relative paths, a lastmod fallback, and changefreq or priority if another tool needs them.
- Save as sitemap.xmlCopy the XML, save it as sitemap.xml in your site root and submit it in Google Search Console or Bing Webmaster Tools.
What Google uses: loc and lastmod, not priority
Each URL becomes a url entry with a loc tag. Google says it uses lastmod only when the dates are consistently accurate, so add a date when the page content really changed. For URLs without their own date, the generator can leave lastmod out, use today's date or apply one shared date. changefreq and priority belong to the sitemaps.org format but Google ignores both, so they are off by default. If another tool needs priority, the folder-depth option gives the home page 1.0, first-level pages 0.8, second-level pages 0.6 and anything deeper 0.5.
Sitemap limits and common mistakes
One sitemap may list up to 50,000 URLs and be up to 50 MB uncompressed; past either limit you get a warning and should split the list and use a sitemap index. Every loc must be an absolute URL, so relative paths need the site address field. Fragments after # are stripped, duplicates are removed by default and lines starting with # are treated as comments. A line with anything other than a URL and one date is skipped with a message, so write spaces inside URLs as %20. A sitemap should only list URLs from its own host, and mixing domains triggers a warning.
Accuracy and data handling
Generated tags and rules must match the real page content and the site's deployment environment. The calculation runs in your current browser; the tool code does not send the input to a processing API.
FAQ
How do I add lastmod dates to a sitemap?
Put the date after the URL on the same line, e.g. https://example.com/blog/hello-world 2024-05-01. For URLs without a date you can leave lastmod out, use today's date or apply one shared date.
Does Google use changefreq and priority?
No, Google ignores both, so the generator leaves them out by default. They are still part of the sitemaps.org protocol, so you can add them if another tool expects them.
How many URLs can one sitemap hold?
Up to 50,000 URLs and 50 MB uncompressed. The generator shows the approximate file size and warns past either limit; split larger sites into several sitemaps and list them in a sitemap index.
Can I use relative paths like /contact?
Yes, as long as the site address is filled in. With https://example.com set, /contact becomes https://example.com/contact. Without it, relative lines are skipped and listed in a warning.
More SEO Tools
Related toolsCount word and phrase frequency and measure the density of your target keywords
Measure title tags in pixels and characters and preview where Google may cut them
Check meta description pixel width for desktop and mobile and copy the meta tag
Turn titles into lowercase, hyphenated URL slugs, one per line
Create robots meta tags and X-Robots-Tag headers for any crawler
Build validated hreflang tags, headers or XML sitemap entries with x-default