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
- Paste every URL you want indexed — one per line, each a full absolute URL with https://.
- Set lastmod to the date each page was last meaningfully changed, and optionally changefreq and priority.
- Copy the generated XML and save it as /sitemap.xml at the root of your domain.
- Add a Sitemap: line to your robots.txt pointing at the file's absolute URL.
- 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
- robots.txt Generator — add the Sitemap directive that points crawlers to this file.
- Canonical Tag Generator — ensure the URLs in your sitemap are the canonical ones.
- Meta Tag Generator — set noindex on pages you deliberately leave out of the sitemap.
- Schema Generator — enrich the indexed pages with structured data.
Frequently asked questions
Does Google use changefreq and priority?
How big can a sitemap be?
Should I include every page?
Where does the sitemap file go?
What format should lastmod use?
Do I need a sitemap if my site is small?
What is a sitemap index?
Will adding a URL to the sitemap force indexing?
Related tools
More tools you might find useful in the same flow.
Meta Tag Generator
Meta tag generator — build complete SEO title, description, robots, and canonical tags for any page, ready to copy and paste. Free, with no signup needed.
robots.txt Generator
robots.txt generator — build a clean robots.txt file with user-agent rules, allow and disallow paths, and sitemap entries in seconds. Free, no signup needed.
Keyword Density
Keyword density checker — analyze pasted text or page copy for word density, keyword frequency, top phrases, and word counts. Free, runs in your browser.
Schema Generator
JSON-LD schema generator — create structured data for Article, FAQ, Product, Local Business, and other schema.org types. Free, ready to copy and paste.
Built by Muhammad Tahir · About