XML Minifier / Formatter

Minify XML by removing whitespace and comments, or prettify it with configurable indentation.

Runs entirely in your browser — nothing is uploaded or stored on any server.

About XML Minifier / Formatter

Updated Mar 2026

Minify XML to reduce file size by stripping whitespace and optionally removing comments. Also supports prettifying/formatting XML with configurable indent size. Shows the size before and after to quantify savings. Works entirely in your browser with no data sent to a server.

Frequently Asked Questions

Related Tools