XML Minifier
runs in your browserno sign-upfree
Minify XML by removing indentation and comments while keeping text and attributes intact.
420 B → 333 B · saved 21%
XML420 chars
Minified XML333 B
About this tool
This XML minifier removes indentation and line breaks between tags, and optionally comments, so your XML takes up as little space as possible. Text inside elements, attributes and CDATA sections are kept exactly as they are, and the size before and after is shown.
How to use
- Paste your XML into the XML box.
- Choose whether to remove comments.
- Copy the minified XML or download it as a .min.xml file.
FAQ
Is any of my data removed?
Only whitespace between tags (indentation and line breaks) and, if you choose, comments. Text content — including spaces inside an element — attributes and CDATA are not changed.
How do I make minified XML readable again?
Paste it into the XML Formatter, which adds indentation and line breaks back.
Is my XML uploaded?
No. Everything runs in your browser, so your XML never leaves your device.