ToolBuddy
In Browser

XML Formatter

Pretty-print or minify XML documents in your browser. Indent nested elements from SOAP, RSS, and config files, or collapse whitespace for a compact blob. Parsing and formatting never leave the tab.

Runs in your browser. Nothing is uploaded.

Loading tool…

About this tool

Pretty-print or minify XML in the browser. Beautify re-indents nested elements; minify collapses comments and extra space. SOAP envelopes, RSS feeds, and Maven-ish config stay on the device instead of an XML pretty-print host.

How to use: paste a document, pick beautify or minify, choose indent, copy. This is best-effort formatting via an HTML beautifier tuned for tags. It is not a schema validator and will not fetch DTDs.

Example: a single-line <note> payload becomes nested <to> / <from> / <body> tags. Minify is a size check, not a canonicalizer. Invalid XML may still indent; use JSON ↔ XML if you need a parse error from DOMParser.

Documents never leave the tab. After load, formatting works offline. Related: JSON ↔ XML for structure conversion, HTML formatter for tag soup from a page.

Related Web tools