XML Formatter
Beautify, minify and validate XMLRuns locally · nothing uploaded
Input
Output
Also works as:xml minifyxml validatorxml pretty print
How to use
- 1Paste XML.
- 2Choose format or minify and the indent.
- 3Copy the result; errors are explained if the XML is invalid.
FAQ
Why is my XML invalid?
Unclosed or mismatched tags, unquoted attributes, a bare & or <, or more than one root element.
Does minifying change the data?
It only removes whitespace between tags and comments; elements, attributes and text stay the same.