Pretty-print XML (including SVG) by inserting indentation between tags. Helpful when comparing API payloads, SOAP envelopes, or config fragments in code review.
When to use it
- Readable diffs of machine-generated XML
- Inspect SVG structure before editing
- Teach XML nesting without an IDE plugin
Limitations
Does not validate against XSD schemas. Malformed XML returns an error. Attribute line wrapping follows a simple heuristic—not every parser will match the exact whitespace.
Privacy
Formatting is performed entirely in your browser; XML content is not uploaded to a server.
Example
Compact input <root><item id="1">alpha</item><item id="2">beta</item></root> pretty-prints with indentation so each nested element sits on its own line, for example:
<root>
<item id="1">alpha</item>
<item id="2">beta</item>
</root>
The same pass works on SVG fragments: tags and attributes stay intact while whitespace between elements becomes consistent for code review diffs.