XML Sitemap Generator & Validator
Create a sitemap.xml from a list of URLs, or check an existing one for bad URLs, wrong dates, duplicates and size limits.
Runs in your browser. Nothing is uploaded.
How to use the XML Sitemap Generator & Validator
- Generate: list your page URLs, one per line. Full URLs and paths like
/about/both work; set Base URL for paths, and add a date after a URL such as/blog/post, 2026-10-14. - Optionally add a change frequency and priority, check the notes for skipped or duplicate lines, then download
sitemap.xml. - Validate: paste an existing sitemap.xml or open the file. Errors and warnings appear as you type.
- Click a line link to jump to the problem in the editor. Validate this sitemap checks the file you just generated.
- Upload the clean file to your site’s root and add a
Sitemap:line to robots.txt.
Build a sitemap, then prove it is right
A sitemap is an XML file that lists the pages of your site, optionally with the date each one last
changed. Search engines read it to discover pages and to decide what to crawl again. Most website
platforms create one automatically, but static sites, custom builds and landing pages often need one
made by hand, and a hand-made or generated file can break quietly. This page does both jobs: the
Generate tab turns a list of URLs into a valid sitemap.xml, and the Validate tab checks any
sitemap against the sitemaps.org rules and points to the exact line of each problem.
Generate: from a list to a sitemap
Paste URLs from wherever you have them: a spreadsheet, your build output, an analytics export or a crawl. The generator:
- Accepts paths such as
/about/and completes them with your base URL. - Removes duplicates and fragments like
#top, which search engines ignore. - Skips invalid lines such as mailto links, and lists them so you can check.
- Escapes special characters, so URLs with
&in the query string stay valid XML. - Warns about mixed hosts, because one sitemap should cover one site.
Add a date to individual lines, or set today’s date for every page after a release. Change frequency
and priority are optional hints; the priority option scores pages by depth, from 1.0 for the home page
downwards. Accurate lastmod dates matter far more than the other two.
Validate: catch problems before search engines do
A broken sitemap fails quietly: bad entries are skipped and you notice weeks later. The validator checks:
- Structure: well-formed XML, a
<urlset>or<sitemapindex>root and the correct namespace. - URLs: absolute
httporhttpsaddresses, no relative paths, no longer than 2,048 characters. - Dates:
<lastmod>in W3C format (2026-10-14or2026-10-14T09:30:00+00:00), not in the future. - Hints: allowed
<changefreq>words and a<priority>between 0.0 and 1.0. - Consistency: duplicate URLs, URLs on another host, and the 50,000-entry and 50 MB limits.
Sitemap index files are recognised too. Most problems come from the system that writes the sitemap, so fix that source as well as the file, or the same errors return with the next build.
Publish it
- Upload
sitemap.xmlto the root of your site, so it opens at/sitemap.xml. - Add
Sitemap: https://your-site/sitemap.xmlto robots.txt, for example with the robots.txt Generator. - Submit it in the webmaster tools of the search engines you care about, and regenerate it whenever pages are added or removed.
Private
Your URL list and sitemap never leave your browser.
Frequently asked questions
Do I need a sitemap?
Search engines find most pages by following links, but a sitemap helps them discover new pages faster, especially on new sites, large sites, and pages with few internal links. It costs little to provide.
Do lastmod, changefreq and priority matter?
An accurate lastmod date is the most useful: search engines use it to decide what to recrawl. Google says it ignores changefreq and priority, though other engines may read them. Only include dates you know are correct.
What does the validator check?
That the file is well-formed XML with a urlset or sitemapindex root in the sitemaps.org namespace; that every entry has an absolute http or https URL under 2,048 characters; that dates use W3C format and aren’t in the future; that changefreq and priority use allowed values; and that the file stays within 50,000 entries and 50 MB.
What is the difference between errors and warnings?
Errors break the sitemap rules, and search engines may reject the entry or the whole file. Warnings, such as duplicate URLs, future dates or URLs on another host, are allowed by the format but cause problems with indexing.
Can it fetch my live sitemap?
No. Browsers block reading other sites’ files, and this page never contacts other servers. Open your sitemap in a browser tab, copy the XML and paste it into the Validate tab.
Is anything uploaded?
No. Your URL list and your sitemap are processed in your browser.
Tutorials
How to create a sitemap.xml for a small website
Turn a list of your pages into a valid sitemap.xml, add dates, upload it and point search engines to it from robots.txt.
How to find and fix errors in a sitemap.xml
Validate a sitemap, fix relative URLs, bad dates and invalid values, and remove duplicates before search engines see them.