XML Formatter

Format and minify XML. Validate well-formedness with line and column on errors.

Enter input above to see the result.

What is this for?

XML is still everywhere — SOAP responses, configuration files, RSS/Atom feeds, SVG markup, OOXML innards. When you need to read, diff, or share a chunk of XML, the difference between a one-line minified blob and a properly indented tree is the difference between guesswork and reading. This tool pretty-prints any well-formed XML with configurable indentation, or minifies it for transport, and uses the browser's native XML parser to flag malformedness with a line and column where possible.

When to use it

Common gotchas