From a URL list to a valid sitemap.xml
This generator turns a pasted list of URLs into a standard XML sitemap. Paste one URL per line, exported from your CMS, a spreadsheet or a crawl, and the tool removes duplicates, sets aside lines that are not valid http or https URLs, escapes the characters XML requires, and writes a sitemap using the sitemaps.org 0.9 schema. You can add a lastmod date, and optionally changefreq and priority, then copy the XML or download it as sitemap.xml. It runs entirely in your browser.
It does not crawl your site, so the result is only as good as the list you paste. That is a feature when you already know your inventory, and a reason to clean the list first: strip redirect sources, deleted pages and anything you would not want as a standalone search result.
Does your site need one?
Google's own guidance is that a small site, around 500 pages or fewer, that is well linked internally may not need a sitemap at all. Sitemaps pay off on large sites, on new sites with few links pointing in, on sites with weak internal linking where deep pages sit many clicks from the homepage, and on sites that publish often and want new pages found quickly.
A sitemap helps discovery; it does not force indexing. Google still decides whether each URL is worth indexing based on the page itself. If pages are listed but not indexed, look at internal links and quality, starting with the Orphan Page Detector to find pages nothing links to.
What the generated file looks like
Each URL becomes a url block with a loc element holding the absolute address. With lastmod switched on, every entry gets the date you choose. Upload the file to your site root and reference it from robots.txt:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com/</loc>
<lastmod>2025-03-14</lastmod>
</url>
<url>
<loc>https://www.example.com/pricing</loc>
<lastmod>2025-03-14</lastmod>
</url>
</urlset>
# Then point crawlers at it from robots.txt:
Sitemap: https://www.example.com/sitemap.xmlBecause the tool applies one lastmod date to every URL, use it when you are listing pages that really changed on that date, or leave lastmod off. Google uses lastmod to schedule recrawls only when the dates are consistently honest, and a file where every page claims the same date teaches it to ignore the field. Changefreq and priority are offered for other engines, but Google ignores both, so leaving them off is perfectly fine.
Which URLs to leave out
The fastest way to weaken a sitemap is to dump every URL the site can produce into it. List only canonical, indexable pages that return 200. Leave out noindexed pages, since listing a page you told Google not to index is a contradiction. Leave out redirect sources; only the destination belongs. Leave out tracking and session parameters such as utm_source or sessionid, and filter or sort combinations from faceted navigation.
Also skip internal search results and thin tag archives. If a URL exists mainly to help people navigate rather than as a destination, it usually does not belong. Before pasting, check that none of your URLs are blocked by robots.txt; after publishing, the Robots.txt vs Sitemap Conflict Checker catches any that slipped through.
Getting the loc values exactly right
Every URL must be absolute and use the same protocol and host as the site where the sitemap lives. Mixing http and https, or www and non-www, points Google at addresses that redirect. Trailing slashes and letter case matter too: /page and /page/ are different URLs, so match the exact form your canonical tags use.
The most common hand-written error is an unescaped ampersand in a query string, which stops many parsers reading the file. The generator writes it as & automatically, along with the other XML entities, which is the main reason to generate rather than type.
More than 50,000 URLs
A single sitemap can hold up to 50,000 URLs and 50MB uncompressed. If you paste more, this tool keeps the first 50,000 and warns you. Split the list into several files, for example by content type, and tie them together with a sitemap index:
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap><loc>https://www.example.com/sitemap-pages.xml</loc></sitemap>
<sitemap><loc>https://www.example.com/sitemap-products-1.xml</loc></sitemap>
<sitemap><loc>https://www.example.com/sitemap-products-2.xml</loc></sitemap>
</sitemapindex>Submit just the index in Search Console and it will read each child. Grouping by type also makes the Page indexing report easier to read, since you can see which section is struggling. Check the finished set with the Sitemap Index Checker.
Image, video and news sitemaps
This tool writes standard URL sitemaps only. Google also supports extensions: image sitemaps list image:loc entries for a page (Google dropped the caption, title, license and geo tags in 2022), video sitemaps describe a video's thumbnail, title, description and file or player URL, and news sitemaps list articles from the last two days for sites in Google News. These are best generated by your CMS or a plugin that knows your media, since the details change per page.
When a generated file is not enough
WordPress
WordPress already serves /wp-sitemap.xml, and Yoast SEO or Rank Math replace it with a fuller /sitemap_index.xml that updates on publish. Use those rather than a static upload, and exclude thin taxonomies in the plugin settings.
Shopify
Shopify generates /sitemap.xml for products, collections, pages and blog posts automatically and you cannot replace it. This tool is useful there only for extra URLs on another host.
Static sites and frameworks
For a static site, a generated file uploaded to the web root works well if you regenerate it when pages change. For apps, build the sitemap from your database on deploy or on request, with a real per-page updated date. Google retired its sitemap ping endpoint in 2023, so rely on the robots.txt Sitemap line and Search Console submission instead of pinging.
Submitting and checking it
Add a Sitemap: line to robots.txt, submit the file in Google Search Console and Bing Webmaster Tools, and run it through the Sitemap Validator to spot-check that listed URLs load without redirects. Our XML sitemap guide walks through submission and the Search Console reports in detail.