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.

How to use

  1. Paste or import the XML document.
  2. Toggle comment / whitespace removal, then Minify.
  3. 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.

Related tools