XML Minifier
Compact XML by removing whitespace, comments, and unnecessary formatting
All processing happens in your browser. No data is sent to any server.
Minified Output
Why This Tool
XML configuration files and data files often contain excessive whitespace and comments. This tool compacts XML by stripping comments, collapsing whitespace, and removing unnecessary formatting while preserving validity.
How It Works
Paste your XML into the editor. The minifier removes comments, collapses whitespace between tags, and outputs compact XML. Copy the result or see the size reduction.