Smart Sitemap Generator

Generate SEO-friendly XML sitemaps instantly with live preview, URL management, priority configuration, and real-time validation for modern search engine compatibility.

XML SitemapSEO ValidationLive PreviewURL ManagementSearch Engine Ready

About this tool

A professional XML sitemap generator with a visual URL manager, live syntax-highlighted preview, and real-time SEO scoring. Choose from 7 website presets (Blog, SaaS, eCommerce, Next.js, WordPress and more) or build a custom sitemap from scratch — adding, removing, and configuring each URL's priority, changefreq, and lastmod individually.

Bulk-import URLs by pasting a list, validate against common sitemap errors in real time, and download a production-ready sitemap.xml file. Everything runs in your browser — your website data never leaves your device.

How to use

1

Choose a preset

Select your website type — Blog, SaaS, eCommerce, Next.js or more — to auto-fill common URL structures with sensible priority and changefreq defaults.

2

Set your base URL

Enter your domain (e.g. https://yourdomain.com) in Global Settings. All relative paths like /about/ will be combined with it to produce valid absolute URLs in the XML.

3

Add and configure URLs

Add individual URLs with the Add URL button, or paste a bulk list with Bulk Import. Set priority (0.0–1.0), changefreq, and optional lastmod date for each URL.

4

Download & deploy

Check the SEO Health Score and Validation panel, then copy the XML or download sitemap.xml. Upload it to your website root and reference it in robots.txt.

Sitemap SEO best practices

Prioritise your homepage

Set your homepage priority to 1.0. It's your most crawled page and sets the reference point for all other priorities on your site.

Use lastmod accurately

Only include a lastmod date if you can reliably track when content changed. Inaccurate lastmod values reduce trust and may cause crawlers to ignore them.

Exclude non-indexable pages

Don't add admin, cart, checkout, login, or API pages to your sitemap. Only include URLs you want appearing in search results.

Reference in robots.txt

Add Sitemap: https://yourdomain.com/sitemap.xml to your robots.txt file so all search engines can find it without manual submission.

Submit to Search Console

After deploying, submit your sitemap in Google Search Console (Sitemaps section) and Bing Webmaster Tools for fastest indexing.

Use sitemap index for scale

If your site has more than 50,000 pages, create multiple sitemap files and reference them from a sitemap index file instead of a single large sitemap.

How it works

URL management engine

Each URL is stored as a structured object with loc, priority, changefreq, and lastmod fields. Changes to any field immediately regenerate the live XML preview using a pure-JS serialiser.

Syntax-highlighted preview

The XML output is rendered line by line with colour-coded spans — XML declaration, urlset tags, URL blocks, loc values, priority numbers, and changefreq strings each get distinct colours for instant readability.

SEO health scoring

The tool evaluates five factors: HTTPS base URL, homepage presence, duplicate-free URLs, lastmod inclusion, and minimum URL count. Each factor contributes up to 25 points for a maximum score of 100.

100% client-side

All URL processing, XML generation, validation, and file creation happens in JavaScript in your browser tab. No data is transmitted to any server — your website structure stays private.

Frequently asked questions

Quick answers about this free online tool.

A sitemap.xml is a file that lists all important URLs on your website in a structured XML format. It tells search engines like Google and Bing which pages exist, when they were last updated, how often they change, and how important they are relative to each other. While search engines can discover pages without a sitemap, having one speeds up indexing — especially for new or large websites.

Upload sitemap.xml to your website root (e.g. https://yourdomain.com/sitemap.xml), then add it to Google Search Console: go to Sitemaps in the left sidebar, enter your sitemap URL, and click Submit. You should also add a Sitemap directive in your robots.txt file: Sitemap: https://yourdomain.com/sitemap.xml — this allows all search engines to find it automatically.

A single sitemap file can contain a maximum of 50,000 URLs and must not exceed 50 MB uncompressed. If your site has more than 50,000 URLs, you need to create multiple sitemap files and reference them all in a Sitemap Index file. Most tools and CMS platforms handle this automatically for large sites.

Small sites (under 100 pages) with good internal linking may not strictly need one — Google can discover all pages by following links. However, a sitemap is always recommended because it guarantees faster indexing, gives you control over priorities, and helps with pages that have few inbound links (like new pages or product pages deep in a site hierarchy).

changefreq is a hint to search engines about how often a page's content changes. Valid values are: always, hourly, daily, weekly, monthly, yearly, and never. It's only a hint — Google does not guarantee it will crawl at the specified frequency. Use 'daily' for news/blog indexes, 'weekly' for feature pages that update regularly, and 'monthly' or 'yearly' for static pages like About or Privacy Policy.

Priority is a value between 0.0 and 1.0 that indicates how important a URL is relative to other URLs on your site. The default is 0.5. Set your homepage to 1.0, main category pages to 0.8–0.9, individual posts/products to 0.6–0.7, and low-priority pages (contact, legal) to 0.3–0.5. Priority is only meaningful within your own site — Google uses it as a relative signal, not an absolute ranking factor.

They serve opposite purposes. sitemap.xml tells search engines which pages you WANT them to crawl and index — it's an invitation. robots.txt tells search engines which pages you DON'T want them to crawl — it's a restriction. Best practice is to use both together: robots.txt to block private paths (admin, API, cart) and sitemap.xml to guide crawlers to your important public pages. Include a Sitemap directive in robots.txt pointing to your sitemap URL.

A sitemap doesn't directly boost rankings, but it indirectly improves SEO by ensuring your pages get indexed faster and more reliably. Without a sitemap, new pages may take weeks to appear in search results. With one, Google can discover and index them within days. For large sites, it also helps ensure deep pages (those with few internal links) get crawled — pages that can't be indexed can't rank.