Skip to content
Processing locally — files never leave your device

Sitemap Generator Online

Paste a list of URLs and this free online sitemap generator builds a valid sitemap.xml for you. Set lastmod, changefreq, and priority per URL, then copy or download the result and submit it to Google Search Console.

How to use Sitemap Generator

  1. Paste every URL you want indexed — one per line, each a full absolute URL with https://.
  2. Set lastmod to the date each page was last meaningfully changed, and optionally changefreq and priority.
  3. Copy the generated XML and save it as /sitemap.xml at the root of your domain.
  4. Add a Sitemap: line to your robots.txt pointing at the file's absolute URL.
  5. Submit the sitemap URL in Google Search Console and Bing Webmaster Tools to speed up discovery.

XML sitemaps: a discovery map for crawlers

An XML sitemap is a structured list of the URLs on your site that you want search engines to know about, along with optional metadata about each one. It does not replace good internal linking, but it helps crawlers discover pages faster and find URLs they might otherwise miss. This tool turns a plain list of URLs into a valid sitemap.xml you can upload and submit.

What the XML looks like

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/</loc>
    <lastmod>2026-01-15</lastmod>
  </url>
  <url>
    <loc>https://example.com/blog/post</loc>
    <lastmod>2026-02-01</lastmod>
  </url>
</urlset>

Every URL lives in a <url> element with a required <loc>and an optional <lastmod>. The whole file is wrapped in a single <urlset>.

Which fields actually matter

Only two carry weight in practice. <loc> is the canonical absolute URL and is required. <lastmod> is the one optional field Google honours — when it is accurate, it helps Google prioritise recrawling changed pages. Google ignores <changefreq> and <priority> entirely, so do not spend effort tuning them.

Only include URLs you want indexed

A sitemap should be a clean list of canonical, indexable, 200-status URLs. Including pages that are noindexed, redirected, blocked in robots.txt, or non-canonical duplicates sends contradictory signals and erodes Google's trust in the file. Treat the sitemap as your curated "please index these" list, not a dump of every URL that exists.

Size limits and sitemap indexes

Each file caps out at 50,000 URLs or 50 MB uncompressed. Beyond that, split your URLs across several sitemaps and list them in a sitemap index file. Large publishers also segment by type — one sitemap for articles, one for products, one for category pages — which makes Search Console's coverage reports far easier to read because errors are isolated by section.

Getting it discovered

Do two things after you upload the file. First, add a Sitemap: line with the absolute URL to your robots.txt, which every crawler reads. Second, submit the sitemap in Google Search Console and Bing Webmaster Tools — this gives you a coverage report showing how many submitted URLs were actually indexed and why any were excluded.

Related SEO tools

Frequently asked questions

Does Google use changefreq and priority?
Largely no. Google has stated it ignores both changefreq and priority — they were widely abused, so it relies on its own crawling signals instead. The lastmod date is the one optional field Google does pay attention to, provided it is accurate. The fields do no harm, but do not expect them to influence crawling.
How big can a sitemap be?
A single sitemap file may contain up to 50,000 URLs and be no larger than 50 MB uncompressed. For larger sites, split URLs across multiple sitemaps and list them in a sitemap index file, which itself can reference up to 50,000 sitemaps.
Should I include every page?
Only canonical, indexable URLs that return a 200 status. Leave out pages that are noindexed, blocked by robots.txt, redirected, or non-canonical duplicates. A sitemap full of non-indexable URLs sends mixed signals and wastes crawl budget.
Where does the sitemap file go?
Conventionally at /sitemap.xml in the site root, though any location works as long as you reference it. The URLs inside a sitemap must all belong to the same host the sitemap is served from. Always reference it from robots.txt and submit it in Search Console.
What format should lastmod use?
W3C datetime format: either a date (2026-01-15) or a full timestamp with timezone (2026-01-15T09:30:00+00:00). Keep it honest — only update it when the page content actually changes, because a sitemap that claims everything changed today trains Google to distrust the field.
Do I need a sitemap if my site is small?
Small, well-linked sites can be crawled fine without one, but a sitemap still helps Google discover pages faster and find URLs that internal linking misses. It costs almost nothing to provide and is especially valuable for new sites with few inbound links.
What is a sitemap index?
A sitemap index is a master file that lists other sitemap files rather than URLs. Large sites use it to organise sitemaps by section (e.g. one per content type) and to stay within the 50,000-URL per-file limit. You submit the index, and Google reads all the children.
Will adding a URL to the sitemap force indexing?
No. A sitemap is a discovery aid, not a command. It helps Google find and prioritise crawling your URLs, but Google still decides independently whether each page is worth indexing based on quality and relevance.

More tools you might find useful in the same flow.

Built by Muhammad Tahir · About