Strip whitespace and comments from XML documents to minimise payload size for storage or transmission. Maintains all tag names, attributes, and data integrity.
Key Features
Removes whitespace between adjacent tags and indentation spaces
Optionally strips XML comment nodes to maximize size reduction
Preserves whitespace inside CDATA blocks and quoted attribute values
Computes before-and-after byte counts with percentage saved
How to Use
Paste your indented XML document into the input field.
Toggle optional settings like comment removal.
Click "Minify XML" to compact the markup into a single stream.
Check the byte savings summary.
Copy the compressed XML string for production use.
Privacy notice: when you run this tool, your input is sent over HTTPS to our server, processed in memory and returned. It is not stored or logged. Avoid pasting live secrets such as private keys or passwords.