Compresses XML by removing whitespace between tags.
XML Minify strips the whitespace and indentation between tags to compress an XML document into its smallest equivalent form. It keeps the XML declaration, comments, CDATA sections, entity references, and attribute values intact while collapsing the formatting noise, so the result parses identically to the original. Use it whenever you need a compact XML payload for transport, storage, or embedding.
No. Only the insignificant whitespace and indentation between tags is removed. The XML declaration, comments, CDATA, entities, and attributes are preserved, so the minified output parses to the same document.
Yes. Content inside leaf elements, attribute values, and CDATA sections is left unchanged, including any internal spaces. Only the formatting whitespace surrounding tags is collapsed.
The tool needs parseable XML. Empty input, whitespace-only input, or plain text that is not XML will fail to parse and report an error rather than producing output.
No. Minification runs entirely in your browser. Your XML never leaves your device and is not sent to any server, so it is safe to use with private or sensitive documents.