FreeDev Tools

XML Minifier

Minify XML β€” remove comments and whitespace between elements to a single line.

Runs locally in your browser. Your input is not uploaded.

How to Use

  1. 1

    Paste your XML

    Configuration files, feeds, SVG, or any XML document.

  2. 2

    Minify instantly

    Comments and inter-element whitespace disappear; CDATA stays intact.

  3. 3

    Copy or download

    A footer comment reports the size saving.

Frequently Asked Questions

Comments and whitespace between elements, collapsing a pretty-printed document to a single line. CDATA sections are protected so their content is byte-identical.