Minified XML
Minified XML will appear here
Paste XML on the left to minify it. Or load sample data to see a demo.
Try XML Minifier with sample input
Paste XML on the left to minify it. Or load sample data to see a demo.
Try XML Minifier with sample input
Paste formatted XML on the left and get a compact single-line output on the right.
Paste your formatted XML into the editor. Click "Sample" to load an example with comments and indentation.
<!-- Book catalog -->
<catalog>
<book id="1">
<title>Learning XML</title>
<price>29.99</price>
</book>
</catalog>The minified XML appears on the right panel instantly — all whitespace and comments removed.
<?xml version="1.0" encoding="UTF-8"?><catalog><book id="1"><title>Learning XML</title><price>29.99</price></book></catalog>Use "Copy" to copy the minified XML to your clipboard, or "Download" to save it as a .xml file.
Common questions about minifying XML online
Edit, format, and beautify JSON
Validate, fix, and inspect JSON
Compare, measure, and map JSON
Convert JSON to other formats
Convert other formats to JSON
Convert, format, fix, and minify XML
Generate code and format other languages