How do I format (beautify) XML?
Paste your XML and click Beautify. Each element is placed on its own line and indented by depth, so the structure is easy to scan. Choose 2 spaces, 4 spaces, or a tab for the indent.
How do I minify XML?
Click Minify to strip the whitespace between tags and collapse the document to a single line — smaller to store or send, while the text inside elements is left untouched.
Does it keep attributes and comments?
Yes. Attributes stay on their element, <!-- comments --> and
<?xml ?> declarations are preserved, and self-closing tags
like <br/> are kept as-is.
Is my XML uploaded?
No. Formatting runs entirely in your browser — your XML never leaves your device, so it's safe to paste sensitive documents.
Common use cases
- Making a minified or one-line XML response readable.
- Tidying config files, RSS/Atom feeds, SVG, or SOAP payloads.
- Shrinking XML before storing or transmitting it.