DevToolCase
Sign in Sign in

Minify XML

Remove the white space between the tags of an XML document, and find the exact line of an error.

Share this result

Encrypted in your browser. The key stays in the link, after “#”: only the people you give it to can read it, not even DevToolCase.

The link works for

Sign in for longer links or links without expiry, and to find them in your account.

Runs entirely in your browser: nothing you type is sent or stored.

Why minify XML?

The indentation and line breaks between tags are there for people only. Removing them makes SOAP requests, sitemaps or exported files lighter, without changing their content.

What minifying keeps

  • The text inside elements, its spaces included: only the white space between tags goes.
  • Attributes, in their order, and CDATA sections.
  • Errors: an invalid XML is not minified, its first error is shown with its line and column.

To read a minified XML again, format it.

Add this browser’s favorites to your account?

This browser has 0 favorites that your account does not have:

Either way, this browser keeps its favorites: you find them again after signing out.