XML Minifier
Compact XML payloads for fixtures, logs, and transport while keeping parsing errors visible.
Local processingYour input stays in this browser tab.
Input
Paste XML to minify
Output
Minified XML output
Minified XML appears here.
How XML minification works
The minifier parses XML with the browser parser, removes formatting whitespace, and serializes elements back to a compact XML string.
Invalid XML
Malformed XML shows a parser error and keeps the output empty so broken payloads are not copied by mistake.