What is XML minification?
XML minification removes all non-significant whitespace β spaces, tabs, and line breaks between tags β to produce the smallest valid XML document. The content of text nodes is preserved; only inter-element whitespace is stripped.
Use minified XML for production SOAP requests, API payloads, configuration values stored in databases, and embedded XML strings. Minified XML can be 30β60% smaller than its prettified equivalent, reducing transfer time and storage cost.
How to minify XML
- Paste your prettified XML into the text area above.
- The formatter is pre-set to minify (0 indentation). Click Format to compress.
- Copy the compact output with the Copy button or
Ctrl+K.