XML Minifier

Paste XML and strip all non-essential whitespace for a compact output.

Summary

Paste XML and strip all non-essential whitespace for a compact output.

How it works

  1. Paste the XML content
  2. Choose whether to remove comments
  3. Click Minify
  4. Copy the compacted XML

Use cases

  • Optimizing SOAP request payloads
  • Reducing XML sitemap file size
  • Compressing Android resource XML files

Frequently Asked Questions

Last updated: 2026-06-10 · Reviewed by Nham Vu