XML Formatter
Validate, pretty print or minify XML, with clear error messages.
How it works
- Paste your XML.
- Choose Format or Minify and the indent.
- Copy or download the result.
About this tool
XML is used in sitemaps, feeds, configuration files and many data exchanges. This tool checks that your XML is well formed and then lays it out with clean indentation, or removes extra whitespace to make it smaller.
If the XML is invalid, the tool shows the error message from your browser so you can find the problem. Comments, CDATA sections and processing instructions are kept. External entities are never loaded. Your data stays on your device.
Questions
Does it validate against a schema?
No. It checks that the XML is well formed. It does not check an XSD schema.
Are comments kept?
Yes. Comments, CDATA and processing instructions stay in the output.
Is my XML uploaded?
No. Parsing and formatting happen in your browser.