XML Sitemap Generator & Validator
Create a standards-compliant XML sitemap from a list of page URLs, build a sitemap index for sites with several sitemap files, and check an existing sitemap for XML, structure, URL and date problems. Everything runs in your browser — nothing is uploaded, and the tool never fetches your site or the URLs you list.
- Free to use
- No account required
- Runs in your browser
XML Sitemap Generator & Validator
Next, you might want to
Was this tool helpful?
Good to know
- Useful for
- Website owners, bloggers, online shops, SEO specialists and developers who need a clean sitemap for a small or static site, want to combine several sitemap files in an index, or need to audit a sitemap their CMS or plugin produced.
- Accepts
- A list of absolute page URLs (or sitemap-file URLs) with optional W3C lastmod dates and an optional sitemap location — or pasted sitemap / sitemap index XML
- Produces
- Deterministic UTF-8 sitemap.xml or sitemap-index.xml to copy or download, and a validation report that separates errors, warnings and notes
Privacy
Everything runs in this browser page. What you type or paste isn't uploaded, saved in cookies or browser storage, or added to the page address. The tool never fetches your website, your sitemap files or any URL you list, and pasted XML is parsed locally without loading external resources.
Limitations
- What an XML sitemap is: a file that lists the URLs on a website you want search engines to know about, defined by the sitemaps.org protocol. A URL sitemap uses a <urlset> root with one <url> entry and a <loc> (the page's absolute URL) per page; <lastmod> is optional. The file must be UTF-8 and declare the standard sitemaps.org namespace (schemas/sitemap/0.9).
- Discovery, not a guarantee: a sitemap helps search engines discover URLs, but it doesn't guarantee crawling or indexing, and a valid sitemap can't prove that a URL exists, returns 200, is canonical or is indexable. List the canonical version of each page — the URL you want to appear in results — rather than redirects, duplicates or pages blocked by robots.txt or noindex.
- How to generate and upload: paste one URL per line, fix any reported errors, then download sitemap.xml and upload it to your server. A sitemap usually lives at the root of your domain, as /sitemap.xml. Then submit it in Google Search Console or reference it from robots.txt with a Sitemap: line — that submission is an external step this tool can't do for you.
- What lastmod means: lastmod is the date the page's content last changed meaningfully — new text, prices or images, not a changed footer or copyright year. It's optional, and this tool never adds today's date or the generation date. Submitting a sitemap doesn't change a page's modification date. Google uses lastmod only when it's consistently accurate, so wrong or identical dates on every URL can make search engines ignore them.
- Sitemap indexes: a <sitemapindex> file lists other sitemap files with <sitemap> and <loc> entries (and an optional <lastmod>). Use one when a site needs more than one sitemap — more than 50,000 URLs or 50 MiB, or separate sitemaps for pages, posts or products. An index references existing files; it doesn't create, host or submit them, and it can't list another index.
- Location and host rules: under the protocol, a sitemap covers only URLs on its own protocol and host, in its own folder or below — a file at /blog/sitemap.xml can't list /shop/ URLs, so the root is safest. A sitemap index lists sitemaps on its own site. Google documents exceptions: cross-site sitemaps work when you verify ownership of all sites in Search Console, or when the other host's robots.txt references the sitemap. The generator keeps every file on one host; the validator warns instead of failing.
- Protocol limits vs this tool's limits: the protocol allows at most 50,000 URLs (or sitemap references) and 50 MiB (52,428,800 bytes) uncompressed per file, whichever comes first, and each URL must be shorter than 2,048 characters. For speed and safety in a browser, this tool generates up to 5,000 entries and handles files up to 5 MiB. That's an operational limit of the tool — a larger file that stays within the protocol limits is still valid.
- URL encoding and escaping: URLs are percent-encoded as UTF-8 (so /café becomes /caf%C3%A9 and internationalised hostnames become Punycode) and then XML-escaped, so a query string's & is written as &. Query parameters, letter case in paths and trailing slashes are kept exactly as you typed them. Inputs a browser would silently rewrite — . or .. segments, backslashes — are rejected, as are fragments (#), user names and passwords, and malformed % escapes.
- priority and changefreq: both are optional sitemap elements, but Google ignores them, so the generator doesn't write them. The validator accepts valid values and notes that Google ignores them rather than calling them errors.
- Extensions and formats: the validator recognises image, video, news and xhtml:link (hreflang) extension elements and doesn't treat them as errors, but it doesn't check their contents. Other namespaces are reported as unsupported. Google also accepts RSS, Atom and plain-text sitemaps; this tool only builds and checks the XML format.
- What the validator checks: XML well-formedness, the root element and namespace, which elements appear inside which, required and duplicate elements, URL rules, real calendar dates in W3C format (including leap years), duplicates, host consistency and limits. It isn't a Google Search Console test and doesn't do XML Schema (XSD) validation; DTDs and entity declarations are rejected and never processed.
- SEO best practices: include only canonical, indexable URLs that return 200; use one protocol and host consistently (normally https); give accurate lastmod dates or none; split large sites into several sitemaps listed in an index; keep the sitemap updated when pages are added or removed; and check titles and structured data on the pages themselves.
- This tool doesn't change your website: it never modifies, uploads or replaces any site's sitemap, and it doesn't touch the sitemap of FreeToolsKit itself.
Tips
- Make sure robots.txt doesn't block the URLs you list, and reference your sitemap from it with the Robots.txt Generator & Validator (/marketing/robots-txt-generator). Add structured data to those pages with the Schema Markup & JSON-LD Generator (/marketing/schema-markup-generator) and check how their titles and descriptions may look in search with the Google SERP Snippet & Meta Tag Preview (/marketing/serp-snippet-preview).
- Percent-encoded URLs can be decoded for reading with the URL Encoder & Decoder (/text/url-encoder-decoder).
How to create or check an XML sitemap
- Paste your canonical page URLs, one per line. Optionally add each page's last-modified date after a tab or spaces (YYYY-MM-DD).
- Optionally enter where the sitemap will live — usually sitemap.xml at the root of your domain — so the tool can check host, protocol and folder scope.
- Fix any line-specific errors, then copy the XML or download sitemap.xml and upload it to your website — usually its root folder.
- Submit the sitemap's URL in Google Search Console or add a Sitemap: line to robots.txt. Use the Sitemap index tab for sites with several sitemap files, and Validate XML to check an existing file.
Frequently asked questions
Does a sitemap guarantee that Google indexes my pages?
No. A sitemap helps search engines discover your URLs, but crawling and indexing are never guaranteed. Search engines still decide based on content quality, canonical signals, robots.txt and noindex rules.
Should I add a lastmod date to every URL?
Only if you know when each page's content last changed meaningfully. lastmod is optional, and this tool never fills in today's date for you. Wrong dates, or the same date on every URL, can make search engines ignore lastmod.
Why doesn't the generator add priority or changefreq?
Google ignores both. They're still valid sitemap elements, so the validator accepts correct values and notes that Google ignores them.
When do I need a sitemap index?
When one file isn't enough: a sitemap may contain at most 50,000 URLs and 50 MiB uncompressed, or you may want separate sitemaps for pages, posts or products. The index lists the sitemap files; you then submit the index.
Can a sitemap list URLs from another domain or subdomain?
Normally no: a sitemap covers URLs on its own protocol and host, in its own folder or below. Google allows cross-site sitemaps when you verify ownership of all the sites in Search Console or reference the sitemap from the other site's robots.txt. This generator keeps each file on one host.
Why is the & in my URL written as &?
XML requires the ampersand to be escaped. A query string such as ?color=red&size=m is written as ?color=red&size=m inside <loc>; search engines read it back as the original URL.
Is a sitemap larger than 5,000 URLs invalid?
No. The protocol allows up to 50,000 URLs and 50 MiB per file. 5,000 entries and 5 MiB are this browser tool's own limits for speed and safety; for bigger sites, split the list or use a server-side generator.
Are my URLs or sitemap uploaded or checked online?
No. Generation and validation happen entirely in your browser. Nothing is uploaded or stored, and the tool never fetches your site, sitemap files or URLs — so it can't tell whether pages exist or are indexed.
Related marketing and SEO tools
Related guides
- 8 min readHow to Create an XML Sitemap for a Small WebsiteDecide which URLs belong in your sitemap, leave out duplicates, redirects and noindex pages, then generate the file and validate it before you submit it to search engines.
- 6 min readHow to Track Two Links to the Same Page in One Email NewsletterTag a newsletter's hero button and footer link with the same source, medium and campaign, tell them apart with utm_content, and check both links before you send.
- 8 min readHow to Make a WhatsApp Link with a Prefilled MessageBuild a wa.me link that opens a chat with your number and a ready-typed message, write the number so it works, encode the text, and fix the usual reasons links fail.

