XML Sitemaps Explained: What to Include and What Google Ignores
What an XML sitemap does, which pages belong in it, why priority and changefreq are ignored, how to split large sites and how to submit a sitemap.

XML Sitemaps Explained: What to Include and What Google Ignores
An XML sitemap is a list of the pages on your site that you want search engines to know about. It does not guarantee indexing or better rankings, but it helps crawlers find pages they might otherwise miss and tells them when pages change. The free Sitemap Generator turns a simple list of URLs into valid sitemap files that follow the protocol, and catches common mistakes before search engines see them.
Who needs a sitemap
Search engines mostly discover pages by following links. A small site with clear navigation is found without a sitemap. A sitemap helps most when:
- the site is new and has few links pointing to it;
- it is large, with thousands of pages;
- some pages are deep in the structure or poorly linked;
- content changes often, as on news sites and shops.
What belongs in it
List the canonical URL of every page you want in search results: the version with the right protocol, host, trailing slash and parameters. Leave out redirects, error pages, pages blocked in robots.txt, pages marked noindex and duplicate URLs with tracking or sorting parameters. A sitemap full of URLs that redirect or are excluded sends mixed signals and wastes crawl attention.
The fields
Each entry has a required loc and three optional fields:
lastmodis the date the content last changed meaningfully. Google uses it, but only when it proves consistently accurate, so do not set it to today for every page on every build.changefreqwas meant to hint how often a page changes. Google ignores it.prioritywas meant to rank pages within your site. Google ignores it too.
The generator leaves the optional fields out by default. Put your effort into accurate lastmod dates instead.
Images
You can add image URLs to an entry using the image sitemap extension. This helps search engines find images loaded by JavaScript or on pages they rarely crawl. Separate several images with commas in the generator.
The limits
A single sitemap file can hold 50,000 URLs and 50 MB uncompressed. Larger sites split their URLs across several files and list those in a sitemap index. The generator does this automatically, and you can choose a smaller number per file, for example one file per section, which makes Search Console reports easier to read.
All URLs in a file must use the same host and protocol as the sitemap's location. The generator skips URLs on other hosts and reports them, along with duplicates, URLs longer than 2,048 characters and dates in the wrong format. Special characters such as the ampersand are escaped as the XML standard requires.
Telling search engines
- Upload the sitemap files to the root of your site.
- Add a line such as
Sitemap: https://www.example.com/sitemap.xmlto robots.txt, which any crawler reads. - Submit the sitemap in Google Search Console and Bing Webmaster Tools to see how many URLs were processed and indexed.
Most content management systems generate sitemaps automatically. A generator like this one is useful for static sites, single-page apps, custom-built sites and one-off campaign microsites.
Keeping it current
Regenerate the sitemap whenever pages are added or removed, and update lastmod only when content changes.
Step by step
- Enter your site address.
- Paste URLs or paths, one per line, with optional fields after vertical bars.
- Choose defaults for the optional fields, or leave them out.
- Review skipped URLs and warnings.
- Download the files and add the robots.txt line.
Privacy
The list is processed in your browser. Unpublished URLs are never sent to a server.



