XML formatter is a developer tool that formats, minifies, and validates XML documents. It uses the browser's native DOMParser and XMLSerializer, handles SOAP envelopes, RSS feeds, SVG, and config files, and surfaces parser errors with location detail. The tool runs in your browser.
ACTION
Direct links for specific XML workflows.
DOMParser, then walked node-by-node. A custom indenter re-emits the tree with consistent indentation, preserving CDATA sections, comments, and processing instructions. Minify mode collapses inter-element whitespace.DOMParser and XMLSerializer APIs; no external library. Tree walking via TreeWalker or NodeIterator..xml. Validate mode returns success or the first parse error.Reviewed and tested May 25, 2026.