Free XML Formatter & Validator
Paste XML · a sitemap, RSS feed, SVG, or API response · and pretty-print, minify, or validate it instantly.
100% client-side · nothing you enter is ever sent to a server or stored.
Preview · sign in with a free account to run it
How to use it
- Paste XML: a sitemap, RSS or Atom feed, SVG, or an API response.
- Choose Pretty-print to indent it, or Minify to strip the whitespace between tags.
- If it's invalid, read the error to find the broken tag.
Example
Input
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://example.com/</loc><lastmod>2026-11-21</lastmod></url></urlset>
Result
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://example.com/</loc>
<lastmod>2026-11-21</lastmod>
</url>
</urlset>Common XML errors
- Unclosed or mismatched tag
- Every <tag> needs a matching </tag>, or must close itself as <tag/>, and tags must close in the order they opened.
- Unescaped &
- A bare & in a URL inside a sitemap is invalid. Write &.
- Text before the declaration
- Nothing, not even a blank line, may come before <?xml …?>.
- What's preserved
- CDATA sections, comments, and elements marked xml:space="preserve" are kept exactly as written.
Go deeper
Page updated
Frequently asked questions
What XML will I actually meet in web work?
sitemap.xml and RSS/Atom feeds for SEO, SVG images, RSS-based podcast feeds, and SOAP-era enterprise APIs. Malformed sitemaps are a classic silent SEO failure · validators catch them before Google does.
What is an XXE vulnerability?
XML External Entity injection: a parser configured to resolve external entities can be tricked into reading server files or making internal requests. This tool parses inertly in your browser · but your backend parser should disable external entities explicitly.
Google says my sitemap couldn't be read. Will this help?
Paste the sitemap here. If it fails to validate, the error points to the problem, most often an unescaped & or a stray character before the declaration.
Want the full picture?
This tool covers one narrow check. A full SimplyScan runs 60 checks across 14 categories · exposed keys, RLS, XSS, auth, and speed · in 30 seconds.
Run a full security scanRelated tools
Text Diff Checker
Paste two versions of a text or file and see exactly what changed · line-by-line, with additions and removals highlighted.
Color Converter
Convert any color between HEX, RGB, and HSL · type in one format and get the others, with a live swatch and CSS-ready values.
URL Slug Generator
Turn any headline into a clean URL slug · lowercase, hyphenated, accent-free, with optional stop-word removal.