Skip to content
Text Mechanic
Developer Tools

XML Formatter

Indent XML so its structure is readable.

Re-indents an XML document one level per nesting depth, keeping simple <tag>value</tag> elements on a single line. It checks that tags balance and reports the first mismatch by name. It is a structural formatter, not a validating parser — it does not check against a DTD or schema.

Options
InputText is processed entirely in your browser.
0lines0words0characters0 B
Output
0lines0words0characters0 B