XML Formatter & Validator
Paste XML to pretty-print it, check that it’s well-formed, or minify it. Errors show the exact line and column.
Runs in your browser — nothing is uploadedHow to use XML Formatter
- Paste your XML.
- Click Format, Minify or Validate.
- Copy or download the result.
Questions
Does it validate against a schema (XSD/DTD)?
It checks that the XML is well-formed (correct nesting, quoting and escaping). Schema validation isn’t supported.
Are comments and CDATA kept?
Yes. Comments, CDATA sections and processing instructions are preserved.