All tools

XML formatter / validator

Pretty-print, minify or validate XML. Comments, CDATA and processing instructions are kept. Nothing leaves your browser.

0 characters
0 characters

Parsing uses your browser's built-in XML parser, so validation checks well-formedness (matching tags, quoted attributes, one root element), not a DTD or XSD schema. Whitespace-only text between elements is dropped when formatting.