XML Formatter
Paste XML to beautify it into clean, indented markup — or minify it to a single line. Everything runs in your browser.
<?xml version="1.0"?>
<catalog>
<book id="bk101">
<author>Gambardella</author>
<title>XML Guide</title>
<price>44.95</price>
</book>
</catalog>Formatting runs entirely in your browser — your XML is never uploaded.
Make unreadable XML readable
APIs, SOAP services and config exports love emitting XML as one dense line. Paste it here and the beautifier re-indents every element by nesting depth so you can actually follow the structure — spot the misplaced tag, the unexpected namespace, or the element that's nested one level too deep. Switch to minify to collapse it back to a compact single line for transport.
Works on any XML dialect
Because SVG, RSS, Atom, SOAP envelopes and countless config files are all XML under the hood, the same formatter handles them all. It runs locally in your browser, so pasting a response full of internal data is perfectly safe — nothing is uploaded, and you can copy the cleaned-up result with one click.
FAQ
What's the difference between beautify and minify?
Beautify adds line breaks and indentation so the structure is readable — ideal for debugging or reading a response. Minify strips the whitespace between tags to shrink the payload for transport. The data itself is unchanged either way.
Does formatting change my XML's meaning?
No. Formatting only adjusts insignificant whitespace between elements; element names, attributes, text content and structure are preserved. Note that whitespace inside a text node can be significant in some schemas, so review mixed-content documents.
Can it format an SVG or an RSS feed?
Yes — SVG, RSS, Atom, SOAP, and configuration files are all XML, so they beautify and minify the same way.
Is my XML sent to a server?
No. Formatting runs entirely in your browser, so you can paste API responses or config files containing sensitive data without them leaving your machine.
Free tools are just the start
Deploy your next app on bare-metal cloud with per-second billing — your first app is free, no credit card required.
More free tools
Validate JSON with precise error locations, then pretty-print or minify it — with sorted keys if you like.
Strip comments and whitespace from HTML, CSS or JavaScript and see exactly how many bytes you saved.
Pretty-print SQL queries with dialect-aware formatting for Postgres, MySQL, SQLite and more.
Generate strong, random passwords with a cryptographically secure RNG — entirely in your browser.
Encode text to Base64 or decode it back — UTF-8 safe, with URL-safe variant support.
Percent-encode strings for safe use in URLs, or decode %20-style sequences back to text.