XML Formatter
Format and minify XML for readability and validation.
Remove whitespace and line breaks from XML to reduce its size.
XML Minifier removes unnecessary whitespace, line breaks, and indentation from XML to reduce its size. It is useful for optimizing API responses or reducing network transfer size. The XML is validated for well-formedness before minifying, and the character count before and after compression, along with the reduction rate, are shown.
XML Formatter handles both pretty-printing and minifying. XML Minifier focuses solely on compression and also shows reduction statistics.
Enable the "Remove comments" option to strip <!-- --> style comments before minifying.
Yes. Any XML declaration (<?xml ...?>) in the input is kept at the top of the minified output.
No. All processing happens in your browser using the built-in DOMParser.