XML Formatter
Tool guidePretty print and minify XML documents
Input: This tool processes input in your browser. Check in Network (opens in a new tab)
Mode:
Indent:
Input (XML)
Output (Formatted)
Paste XML on the left, then press ⌘Enter
Tool guide
Back to workspacePaste your XML and get instant formatting with customizable indentation (2/4 spaces or tabs). Supports minification, attribute alphabetical sorting, XML declaration control, and comment/CDATA preservation. All processing runs in your browser.