Skip to content
Tool Dock

XML Minifier

Strip whitespace and comments from XML to make it smaller.

Options

Input

Waiting for input

Output

or press ⌘/Ctrl + Enter
  • Runs in your browser
  • Nothing is uploaded
  • Free, no sign-up

How to use it

  1. Paste XML, SVG, RSS, a plist or any other XML document.
  2. Choose Format with your indentation, or Minify to strip whitespace.
  3. 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.

All tools