About the XML Minifier
The XML Minifier first rejects malformed documents, then removes comments and formatting whitespace between markup boundaries. Text content inside elements remains intact.
How to use the XML Minifier
- Paste well-formed XML.
- Minify the tag-to-tag whitespace.
- Download the compact document and test its consumer.
Practical tips
- Whitespace can be data in mixed-content formats, so keep a source copy.
- Minification is separate from gzip or Brotli transport compression.