Introducing our free XML Sitemap Generator and Validator

Broken XML escaping, stale URLs, mixed hosts or an oversized file can make a sitemap hard to trust. With our free XML Sitemap Generator and Validator, you can build a file in your browser or use the sitemap.xml validator to inspect an existing one.
Why we built it
A shop’s sitemap might be created by its platform or an SEO extension, so it’s easy to assume the file is fine without checking what’s inside. A malformed XML file, duplicate address or unexpected mix of http and https URLs can be hard to spot by eye.
We built this tool for shop owners, developers and anyone responsible for keeping a site tidy. You can check an existing sitemap’s structure and entries, or prepare a sitemap.xml from a list of page addresses. It’s a practical check alongside your usual site maintenance, not a replacement for your platform’s sitemap or Google Search Console.
What an XML sitemap is
An XML sitemap is a file that lists URLs you want search engines to discover. A <urlset> contains page entries. A <sitemapindex> lists other sitemap files, which is useful when a site’s URLs are split across several files.
The sitemaps.org protocol defines the XML format and its rules. For example, the file must use UTF-8 and the sitemap namespace. Special characters in values need to be entity-escaped, so an ampersand in a URL should appear as & in the XML.
A sitemap helps search engines find URLs, but it can’t guarantee they’ll crawl or index them. Google’s sitemap guidance explains what to include and how to submit a file.
An XML sitemap generator and XML sitemap validator in one tool
The tool has two modes: Validate and inspect and Generate. Choose the one that fits the job.
Validate and inspect a sitemap.xml
Paste your XML, drag and drop a file, or click Upload .xml. To try the checker with an example file, click Load example. Clear resets the input.
The validator supports both <urlset> and <sitemapindex>. It checks that the XML is well formed and that the root element uses the http://www.sitemaps.org/schemas/sitemap/0.9 namespace. DOCTYPE declarations are rejected. It also checks the protocol’s limits of 50,000 URLs and 50 MB uncompressed per sitemap file.
It checks the entries too. Each <loc> must be an absolute http or https URL, no more than 2,048 characters, with XML characters escaped. If present, <lastmod> must use W3C Datetime. If included, <changefreq> must be always, hourly, daily, weekly, monthly, yearly or never. <priority>, if included, must be between 0.0 and 1.0.
Duplicate <loc> values are flagged as errors. Mixing hosts, such as www and non-www, or mixing http and https, brings up a warning. Start with the errors, then review the warnings.
If you load a <sitemapindex>, the tool checks that index file. It doesn’t open or inspect the nested sitemap files listed inside it. You can check those files separately. The tool also doesn’t replace Google Search Console’s coverage information or sitemap reports.
Search and filter the URL table
After validation, you’ll see the error and warning counts alongside a URL table. Search the <loc> values to find a particular address, or filter the rows by status to focus on entries with errors or warnings.
For a shop with lots of products and categories, this gives you a direct way to check what the file lists. It can help you spot an unexpected host or duplicate entry. The validator checks URL formats: it doesn’t visit each page to confirm that it loads or hasn’t been redirected. Check any suspicious address on your site as a separate step.
Generate a clean sitemap.xml
In Generate mode, paste a list of absolute page URLs, with one URL per line, to build a <urlset>.
If you need to set details for individual entries, switch to Edit rows. You can add, edit or remove rows, and override the loc, lastmod, changefreq or priority for each one. There’s also an optional defaults panel for Default lastmod, Default changefreq and Default priority, with Load example if you want a starting point.
The generated XML runs through the same validation checks. When it’s ready, use Copy or Download sitemap.xml. You can open the XML sitemap tool to check a file you already have or create a new one.
Optional live fetch and browser privacy
Pasting, uploading, inspecting, generating, copying and downloading all happen in your browser. Only the optional Fetch via aamservices.uk request uses our server.
Live fetch is an optional server-side request for a public http or https sitemap URL. Enter a domain on its own and the tool loads /sitemap.xml. The fetch is capped at 500 KiB, and private, loopback and local addresses are blocked. It uses the same SSRF, size, timeout and rate limits as our Robots.txt Tester.
The sitemap protocol allows a file up to 50 MB uncompressed, but the live fetch limit is separate. For a larger file, paste or upload the uncompressed XML instead.
How to check a shop's sitemap
For this illustrative example, imagine you’re checking an independent UK shop. First, find the sitemap address your platform or SEO extension provides, then confirm that it opens in a browser. The address varies by setup, so don’t assume every shop uses the same file.
- OpenCart: many SEO extensions write
/sitemap.xmlor a sitemap index at the store root. Confirm the URL in the storefront, then add aSitemap:line with its full address torobots.txt. - Shopify: Shopify serves
/sitemap.xmlas an index of product, collection, page and blog sitemaps. For the default storefront, Shopify generates this file, so you don’t upload a custom one. Its sitemap guidance explains where to find it. - WooCommerce: Yoast SEO and Rank Math can output a sitemap index, often at
/sitemap_index.xml. Check the index and submit it in Search Console, rather than submitting each nested file separately. See the Yoast sitemap guidance and Rank Math’s sitemap instructions for their respective setups.
Once you have the right address, use Validate and inspect to check the XML and review the entries. If it’s an index, remember that this tool checks the index itself, not the files it points to. Review those nested files separately if you need to inspect their URLs too.
What a sitemap can and can't do
A sitemap is a hint to Google, not a promise that every listed URL will be crawled or indexed. List the canonical URLs you want to appear in search results. If a product page has several address variations, check which version is the preferred one before including it.
Google ignores <changefreq> and <priority>. It may use <lastmod> when the date is consistently accurate and reflects the last significant update to a page, not just when the sitemap was generated. If you can’t supply an accurate modification date, don’t guess.
You can submit a sitemap through Google Search Console or list its full address in robots.txt, for example:
Sitemap: https://shop.example.co.uk/sitemap.xml
Our Robots.txt Tester can help you review the sitemap line and check whether crawler rules allow access to a path. For related tasks, our llms.txt tool checks or generates an llms.txt file, and the Schema Generator helps you prepare structured data for pages in your sitemap. Find these and the rest of our tools in the free tools hub.
Frequently asked questions
Does this replace Google Search Console sitemap reports?
No. The tool checks the XML you provide; it doesn’t show whether Google fetched or processed your live sitemap. Use the Search Console Sitemaps report to see submission history and errors Google encountered when parsing submitted sitemaps. A successful report still doesn’t guarantee that Google will crawl or index every listed URL.
Is my sitemap uploaded anywhere?
Not when you paste or upload XML, inspect it, or generate, copy or download a sitemap. Those actions stay in your browser. If you tick Fetch via aamservices.uk, our server fetches the public sitemap URL you enter.
What size and URL limits apply?
The protocol allows up to 50,000 URLs and 50 MB uncompressed per sitemap file. The tool checks absolute <loc> URLs of up to 2,048 characters. Optional live fetch has a separate 500 KiB cap, so paste or upload a larger file instead.
Can I fetch a live sitemap.xml?
Yes. Tick Fetch via aamservices.uk and enter a public http or https sitemap URL. A domain on its own loads /sitemap.xml. The server-side fetch is optional and subject to the 500 KiB limit.
Does Google still use lastmod, changefreq and priority?
Google may use <lastmod> when it’s accurate and reflects a significant change to the page. Google ignores <changefreq> and <priority>. The format validator checks these values, but a valid value doesn’t mean Google will use it.
Where should I host sitemap.xml?
Google recommends placing the sitemap at the site root. It can be hosted elsewhere on your site, but without submission through Search Console, a sitemap can affect only URLs beneath its parent directory. Follow your platform’s instructions and make sure the sitemap is publicly accessible.
If you’d like us to review technical SEO, crawlability and sitemaps across your site, see our SEO and AI search optimisation service.
Ready to Start Your Project?
Have questions about building your eCommerce store or custom web application? Let's talk.