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 uploaded

How to use XML Formatter

  1. Paste your XML.
  2. Click Format, Minify or Validate.
  3. 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.