XML Formatter and Minifier
Beautify or minify XML with a real parser — pick your indent, format, copy. Nothing sent.
Stays on your device. This tool runs in your browser — nothing you paste or open ever leaves it. Nothing uploaded, nothing to leak.
↳ received from
Help us improve
Was this tool useful? Tap a star.
Thanks — your rating helps others find it.
An XML formatter pretty-prints raw or minified XML into a clean, indented tree so you can read and debug it — or does the reverse and strips it to a single compact line to save bytes. It uses a real XML parser (not a text hack), so nesting, attributes and text content are laid out correctly. Choose your indentation, format, and copy — everything runs in your browser.
Beautify vs minify
Beautify is for reading and debugging — an API response, an RSS feed, a config or an SVG becomes a neat, indented tree. Minify does the opposite, removing the whitespace between tags to shrink the file for transport or storage. Both use a proper parser, so malformed XML is reported rather than silently mangled.
FAQ
Can it minify as well as beautify?Yes — switch the mode to Minify to strip whitespace and collapse the XML onto a single line.
What indentation can I choose?Two spaces, four spaces or tabs — whichever matches your project’s style.
Is my XML uploaded anywhere?No — parsing and formatting happen entirely in your browser. Nothing is sent or stored.