Best Free XML Formatter
Pretty-print or minify XML in your browser, with well-formedness checking and your choice of indent.
How it works
- Paste your XML. Drop a document, feed, config or SOAP body into the box.
- Format or minify. Hit Format to pretty-print, or Minify to compact it. Parse errors are flagged inline.
- Copy the result. Copy the output. Everything runs in your browser - nothing is uploaded.
About this tool
Make messy XML readable, or squeeze it small, without anything leaving your machine. Paste a document and hit Format to indent the whole tree - elements, attributes, CDATA, comments and processing instructions are laid out cleanly, and empty tags collapse to the self-closing form. If the XML is not well-formed, the parser tells you where it broke instead of producing silent garbage. Minify does the opposite, stripping the whitespace between tags. Advanced options let you choose a 2-space, 4-space or tab indent.
What people use it for
- Make a minified XML feed or config readable
- Compact XML to shrink a request or response payload
- Spot exactly where a document is malformed
- Tidy up SOAP, RSS/Atom or SVG markup before committing