XML Sitemap Generator
Generate an XML sitemap from a list of URLs or paths: duplicates removed, special characters escaped, lastmod dates added and big lists split into an index.
Runs in your browser · Nothing uploaded · No sign-up
Something not working, or missing a feature? Send feedback
About the XML Sitemap Generator
The XML Sitemap Generator turns a list of URLs or paths into a valid sitemap.xml. It resolves paths against your site address, removes duplicates and #fragments, escapes characters such as & and encodes spaces, and splits lists over 50,000 URLs into numbered sitemaps with a sitemap index, as the protocol requires.
Files and tags are generated in your browser; nothing you enter, including unpublished URLs and titles, is sent to a server.
How to use the XML Sitemap Generator
- Enter your site address, then paste one URL or path per line (or import an existing sitemap or a crawler export).
- Optionally add a lastmod date; leave changefreq and priority out unless another search engine needs them.
- Download sitemap.xml, upload it to your site root and submit it in Google Search Console and Bing Webmaster Tools.
Common mistakes
- Listing URLs that redirect. Sitemaps should list final URLs. Including http:// or non-www versions that redirect wastes crawl budget and sends mixed signals about the canonical address.
- Setting every lastmod to today. If every URL always shows today's date, search engines learn the field is meaningless and stop using it. Only change lastmod when the content really changes.
- Forgetting to update the sitemap. A sitemap generated once goes stale as pages are added. On a CMS or framework, generate it automatically on each deploy.
Works well with the XML Sitemap Generator
- Robots.txt Generator: point crawlers to the sitemap.
- XML Validator: check a hand-edited sitemap.
- Remove Duplicate Lines: clean a long URL list first.
Frequently asked questions
Does Google use changefreq and priority?
No. Google ignores both and reads lastmod only when it is consistently accurate. Bing also uses lastmod. Leaving changefreq and priority out keeps the file smaller and honest.
Which pages belong in a sitemap?
Only canonical, indexable pages that return 200: no redirects, no noindex pages, no URLs blocked by robots.txt and no duplicate variants with tracking parameters.
How many URLs can a sitemap hold?
50,000 URLs and 50 MB uncompressed. Larger sites use several sitemaps listed in a sitemap index file; this tool splits them automatically.
Related tools
Robots.txt Generator
Create a robots.txt file with rules per crawler, sitemap links and presets for WordPress or blocking AI bots, then test any URL against it in your browser.
Schema Markup Generator
Generate JSON-LD schema markup for FAQ, Article, Product, Organization, Local Business, Breadcrumb and Event pages, with checks for the fields Google requires.
Open Graph Generator
Generate Open Graph and Twitter Card meta tags and preview how your link looks on Facebook, X, LinkedIn, WhatsApp and Slack before you share it. Copy the HTML.
SERP Preview Tool
Preview your page title and meta description in Google desktop and mobile results. Pixel-width checks show where Google cuts the text off before you publish.
UTM Builder
Build campaign URLs with UTM parameters for Google Analytics: presets for ads, social and email, bulk links for many pages, and a parser for existing links.