Minifier · XML

Minify XML

Paste your XML below and hit Minify to compress it in one click. It removes insignificant whitespace and comments while preserving the document structure. See exactly how many bytes (and gzipped bytes) you save.

Input

0 lines0 B

Output

Your result appears here

Paste code, pick a mode, then hit the button.

Tip: press Enter (or CtrlEnter) to run.

Frequently asked questions

Is the XML minifier free?

Yes. Neatly's XML minifier is completely free, needs no sign-up, and has no usage limits.

Is my XML kept private?

Your XML is processed on the fly and never stored or shared — nothing is saved on our servers.

Will minifying change how my XML works?

No. Minification only removes what a machine ignores; the meaning and structure of your XML stay exactly the same.