Skip to main content

XML Minifier

Minify XML by removing comments and optional whitespace-only text locally. XML stays in your browser; DOCTYPE and schema validation are unsupported. Input is limited to 50,000 UTF-16 code units.

Minification options

Whitespace-only text between child elements can be meaningful; turn off its removal if unsure. The XML parser respects xml:space="preserve". Minifying reserializes the document, so do not use it for byte-sensitive or signed XML. DOCTYPE declarations are unsupported; schemas and external references are not validated. Maximum input: 50,000 UTF-16 code units.

Was this tool helpful?