XML Minifier
Strip whitespace and comments from XML to make it smaller.
Input
Waiting for input
Output
or press ⌘/Ctrl + EnterYour result appears here.
- Runs in your browser
- Nothing is uploaded
- Free, no sign-up
How to use it
- Paste XML, SVG, RSS, a plist or any other XML document.
- Choose Format with your indentation, or Minify to strip whitespace.
- Copy or download the result.
Why Tool Dock
- FastEverything runs on your own device, so there is no queue and no waiting for uploads.
- PrivateYour files and text never leave the browser. Close the tab and they are gone.
- Batch friendlyDrop several files at once and download each result, or all of them together.
Questions
What does “collapse content” do?
Keeps short text inside an element on the same line as its tags, so <title>Hello</title> stays compact instead of spreading over three lines.
Does it validate against a schema?
No. It checks that the document is well formed (tags balanced and properly nested), which catches most copy-paste mistakes, but it does not check an XSD or DTD.
Can I format SVG files with it?
Yes. SVG is XML, so pasting an SVG file's contents formats it the same way.
Related tools
- HTML FormatterBeautify HTML, CSS and JavaScript with consistent indentation.
- JSON Formatter & ValidatorFormat, validate, repair and explore JSON in a real editor, with a tree view and the exact line of any error.
- SQL FormatterFormat messy SQL into readable, consistently indented queries.
- Base64 DecodeTurn Base64 back into text, images or files, right in your browser.
- Base64 EncodeTurn text or any file into Base64, right in your browser.
- BIMI CheckerCheck whether your brand logo can show next to your emails: BIMI record, logo, certificate and DMARC.