Free · Remove extra XML spacing
XML Minifier
Make a smaller XML copy by removing display-only spaces and line breaks.
- Clear result
- Private in your browser
- Copy or download
Remove extra XML spacing
Paste text or open a file. The result stays in this browser tab.
XML to make smaller13 lines · 378 characters
Tip: press Ctrl or Command + Enter to run.
Minified XMLResult ready
Before378 B
After334 B
Removed44 B
<?xml version="1.0" encoding="UTF-8"?><catalog updated="2026-08-12"><book id="bk-101" language="en"><title>The Small Garden</title><author>Mina Lee</author><price currency="CAD">18.50</price></book><book id="bk-102" language="fr"><title>Le ciel bleu</title><author>Noah Roy</author><price currency="CAD">21.00</price></book></catalog>
Three simple steps
How to use it
- Open or paste a valid XML document.
- Press Minify XML to remove display-only spacing.
- Check the size change, then download the smaller copy.
Your file stays on this device
fast-xml-parser reads and changes the text inside this browser tab. Bookify does not upload or save it. For safety, this tool does not open XML files with a DOCTYPE.