> codebench_TOOL: HomeLOCAL-ONLY⌘K Switch

XML Formatter

Tool guide

Pretty 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

Paste 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.

Browse Convert tools

> codebench $Ctrl+Enter Run