<urlset> and <sitemapindex> are supported.How to use
Pick what you want to do, paste your content, then run the tool.
- Select an action (Pretty, Minify, Extract URLs, or Build from URL list).
- Paste your sitemap XML (or URL list) into the input box.
- Click Run, then copy or download the result.
FAQ
What sitemap formats does this support?
It works with standard <urlset> sitemaps and <sitemapindex> files, including namespaced XML.
Does it validate my sitemap against Google’s rules?
No—this checks well-formed XML and helps clean formatting; it doesn’t perform full schema or search-engine policy validation.
Can I extract all URLs from my sitemap.xml?
Yes—choose “Extract <loc> URLs” to output one URL per line.
Can I create a sitemap.xml from a list of URLs?
Yes—choose “Build sitemap XML from URL list” and paste one absolute URL per line.
Is this tool offline / private?
Yes—everything runs in your browser and the script does not send network requests.
Why did the indentation or attribute order change?
Pretty formatting uses consistent indentation and may sort attributes for stable output; sitemap meaning is unchanged.
What if my sitemap is huge?
Very large files can be slow in the browser; split the sitemap (or use a sitemap index) and format smaller chunks.