Browser-Based XML Formatter and Tree Validator
Indents SOAP requests, RSS feeds, Android manifests, and SVG vectors with clean readability.
XML still turns up in sitemaps, RSS feeds, SOAP responses, Android layouts, Maven files and exports from older business software, and it often arrives with no line breaks at all. People paste it here when they need to see the nesting to find one element, to review a feed before submitting it, or to shrink a pretty document back down before embedding it in another file. It is also a convenient way to make a diff readable: formatting two versions the same way means a version-control tool or a side-by-side comparison highlights real changes instead of whitespace.
Paste your document into the box labelled Raw XML Input. The Formatted XML Output box fills in automatically with two-space indentation, and the Beautify XML (2 Spaces) button re-applies it if you want to reset after minifying. To go the other way, press Minify XML, which removes the whitespace sitting between tags. Use the Copy XML button to take the result away. Note that the page begins with a sample catalog loaded, so select all and replace it. Editing the input again immediately reformats, which means a minified result is replaced as soon as you change the text.
Be clear about what this tool is not: despite the title, it does not check that your XML is well formed. It is a text-based indenter that looks at where tags open and close, so a missing closing tag will simply produce odd indentation rather than an error message. Mixed content, where text and tags share a line, and CDATA sections can also be indented in ways you may not expect. For anything critical, validate with a proper parser or schema afterwards, and treat this page as a reading aid for structure.
As an example, paste <note><to>Ann</to><from>Raj</from></note>. The output becomes four lines: <note> at the left margin, then <to>Ann</to> and <from>Raj</from> each indented by two spaces, and </note> back at the margin. Elements that hold only text stay on one line, which keeps long lists compact. If the indentation suddenly stops lining up halfway down a big file, look just above that point for an unclosed or misspelled tag, since that is where the nesting depth went wrong.
Key Highlights:
- Tag balance validation
- Custom indentation width
- Download .xml file

