XML Minifier
Strip whitespace and comments from XML, collapsing it to a single line.
How XML minification works
XML documents are often hand-formatted with indentation and line breaks for readability, but none of that whitespace is required by the format itself — it just adds bytes. This minifier removes XML comments (<!-- ... -->), collapses every run of whitespace between tags down to nothing, and normalizes remaining whitespace inside tags to single spaces, producing a compact, functionally identical document on a single line.
Text wrapped in a <![CDATA[ ... ]]> section is left completely untouched, since whitespace inside CDATA is part of the literal data and stripping it could silently corrupt content like embedded scripts, markup, or preformatted text. Everything runs locally in your browser — no file is ever uploaded anywhere.
Private & free — this tool runs entirely in your browser.