XML Minify
Compress XML for API payloads by removing optional whitespace and comments.
All processing on this page runs locally in your browser unless noted otherwise.
Ctrl/⌘ + Enter to run
How to use
- Paste or import the XML document.
- Toggle comment / whitespace removal, then Minify.
- Copy the compact result for API calls or configs.
FAQ
Will minify break significant whitespace?
Whitespace-only text nodes can be removed. Significant text content is kept.
Is minify local?
Yes. Nothing is uploaded.