About the XML Sitemap Generator
A sitemap helps search engines find every page you want indexed, especially on new sites and sites with deep pages that few links point to. This XML sitemap generator takes a list of URLs you already have, from a spreadsheet, a CMS export or a crawl, and turns it into a valid sitemap.xml with correctly escaped addresses and optional last-modified dates, change frequency and priority, splitting very large lists into several files with an index. It does not crawl your site, because browsers block one website from fetching another site's pages. Submit the sitemap in Google Search Console and reference it in robots.txt with the Robots.txt Generator; to remove duplicate URLs first, use the Duplicate URL Remover.
Last-modified dates, change frequency and priority can be applied to the entire list at once or given individually through extra columns. One thing to be aware of: search engines have stated openly that they disregard change frequency and priority. They are offered because the format permits them and certain other tools look for them, not because they influence crawling.
Large lists are split automatically. When there are more than 50,000 addresses, or the file would grow past 50 MB, the output becomes a set of numbered sitemaps together with an index file that lists each of them, exactly as the specification demands. Addresses that are not valid are reported separately rather than slipped into the file.
How to use the XML Sitemap Generator
- Paste the address listPut one URL on each line, optionally followed by a comma or tab and a last-modified date.
- Choose default valuesA shared date, frequency and priority fill in for any address without its own.
- Create the fileThe XML is generated with special characters escaped and the structure checked.
- Upload itPlace sitemap.xml in the root folder of your domain and mention it in robots.txt.
XML Sitemap Generator features
- Well-formed XML using the official sitemap namespace
- Dates, frequency and priority per address or for the whole list
- Dates written in the W3C format
- Ampersands and other reserved characters escaped
- Automatic split with an index file for very large lists
- Invalid addresses listed instead of being included
- File downloaded ready to upload
Common uses
- Producing a sitemap for a site that has no SEO plugin
- Turning a crawler export into a sitemap
- Adding a sitemap to a static website
- Breaking a huge list of addresses into valid files
- Repairing a hand-made sitemap that fails validation
XML sitemaps in practice: a small business site, choosing which pages to include, honest lastmod dates, sitemap indexes and reading the reports
A sitemap lists the pages you want search engines to find, with optional dates showing when each changed. It helps discovery, especially for new sites and pages with few links, but it does not force indexing or boost rankings. This guide builds a sitemap for a small business site and covers which pages belong, honest dates, splitting large sites, submitting the file and reading Search Console's reports.
A worked example: a small business site
A physiotherapy clinic's website has about forty pages: services, team profiles, location pages and blog posts. The owner exports the list of published pages from the content system, removes thank-you pages, tag archives and duplicate addresses, and generates a sitemap with the remaining canonical URLs. The file is uploaded to the site's root, referenced from robots.txt and submitted in Search Console.
Which pages belong
Include only pages you want to appear in search: canonical addresses that return a normal status and are not marked noindex. Leave out redirects, error pages, login areas, internal search results and near-duplicate filter pages. A sitemap full of such addresses wastes crawling and makes reports harder to interpret.
Honest lastmod dates
Search engines use the lastmod date when it proves consistently accurate. Setting every page's date to today on each update, or changing dates without changing content, teaches them to ignore the field. Update a page's date when its main content changes meaningfully, such as new prices or rewritten sections.
Sitemap indexes for larger sites
Each sitemap may hold up to 50,000 addresses and 50 MB uncompressed. Larger sites split pages into several sitemaps, often by type, such as pages, posts and products, and list them in a sitemap index. Splitting by type also makes it easier to see in reports which section has indexing problems.
Keep it updated automatically
A sitemap generated once and forgotten slowly drifts from the real site. Content systems and SEO plugins can regenerate sitemaps automatically when pages are published or removed. For static sites, regenerating the sitemap as part of each build keeps it accurate.
Reading the reports
Search Console's Sitemaps report shows when a sitemap was last read and how many addresses were discovered. The Pages report then explains why particular addresses are or are not indexed, such as Crawled, currently not indexed. A sitemap gets pages found; quality and usefulness decide whether they are indexed.
Images, video and news
Sitemaps can also describe images and videos on pages, helping them appear in image and video search, and news publishers can use dedicated news sitemaps. These extensions use extra namespaces, so generate them with tools that support them and validate the XML.
Checking the file
Open the sitemap in a browser to confirm it loads, and validate it to catch errors such as unescaped ampersands in addresses. A sitemap that fails to parse is ignored entirely, so a quick check after every major change is worthwhile.
Common mistakes
- Including redirects, noindexed pages and duplicates.
- Setting every lastmod date to the current day.
- Generating a sitemap once and never updating it.
- Expecting a sitemap to force pages into the index.
Related tools
To point crawlers to the sitemap, use Robots.txt Generator. To clean the list of addresses first, try Duplicate URL Remover, and to validate the finished file, XML Formatter.
Language versions
Sites with English and Urdu versions of pages can declare the alternate language addresses inside the sitemap, instead of in each page's head. This keeps hreflang information in one place, which is easier to maintain on large sites with many translated pages.
The ping endpoint is gone
Google retired the old sitemap ping address in 2023, so sending requests to it no longer does anything. Submit sitemaps in Search Console and list them in robots.txt; Google rereads them regularly, especially when their content changes.
Other search engines
Bing Webmaster Tools accepts sitemaps too, and some search engines support IndexNow, a way of notifying them instantly when pages are added or updated. Submitting sitemaps to Bing as well as Google takes minutes and can bring additional visitors.
When pages are removed
When pages are deleted, remove them from the sitemap and make sure they return a not found or gone status, or redirect to a close replacement. Leaving deleted pages in a sitemap produces errors in reports and sends crawlers to dead ends.
A sitemap page for people
An HTML page listing the site's main sections and important pages helps visitors who prefer browsing to searching. It is separate from the XML sitemap and written for people, with clear headings and descriptions rather than a raw list of addresses.
Separate sitemaps for new content
Some sites keep a small sitemap listing only recently published or updated pages, alongside the full sitemaps. Search engines can then spot new content quickly without rereading thousands of unchanged addresses, which is useful for busy blogs and news sections.
Privacy
Sitemaps are generated in your browser. Your address list is not uploaded or stored.
Frequently asked questions
Can the tool find my pages by itself?
No. Browsers stop a web page from fetching pages on other domains, so discovering your pages would require a server doing the crawling for you. Instead, the generator builds the sitemap from a list of addresses that you already have.
How can I get a list of my URLs?
Export one from your CMS, run a desktop crawler like Screaming Frog, check your server logs or reuse an existing sitemap. For a static site, the list of HTML files in the build folder is a reliable starting point.
Are change frequency and priority worth setting?
Not really. Search engines have said publicly that both values are ignored. The format still includes them and some tools expect to find them, so they are available here, but marking every page with top priority changes nothing.
How many URLs can a single sitemap hold?
Up to 50,000 addresses, and the uncompressed file must stay under 50 MB. Larger collections need several sitemap files plus an index that points to them, and the generator creates that arrangement for you automatically.
Which date format does lastmod need?
The W3C datetime format, meaning either a plain year-month-day date or a full timestamp with a time zone. Whatever you enter is normalised. Keep the dates honest, because crawlers that trust a wrong date waste visits on unchanged pages.
Where should I put the finished file?
Upload it to the top level of your domain so it opens at /sitemap.xml, add a Sitemap line to your robots.txt and submit the address in Google Search Console.