Input

Action
Indentation

Whitespace between elements is reformatted; mixed text, CDATA and xml:space="preserve" are retained. Output is UTF-8. DTD and entity declarations are not supported.

Result

Run the tool to see the result.

How to use

Paste or import UTF-8 XML to format, minify or check well-formedness. Layout changes whitespace between elements; mixed text, CDATA, comments and xml:space="preserve" remain intact. Downloads use UTF-8. DTD and entity declarations are rejected. Limits: 1 MB, 128 levels and 50000 nodes.