XML
Compress XML by stripping indentation and insignificant whitespace — see the size savings instantly.
Minification runs locally in your browser. Nothing is uploaded, logged, or stored.
Only whitespace that sits between tags (where it carries no meaning in XML) is stripped, along with indentation and redundant newlines. Text inside elements, attribute values, and comments are preserved exactly, so the minified output parses to the same data as the original.
Want the opposite direction? Expand compact XML with the XML Formatter, or shrink markup pages with the HTML Minifier.
Minify verbose XML configs before committing or bundling them to save space.
Compact XML before sending it over an API or storing it in a database column.
Pretty-print messy XML with clean indentation or minify it — with validation built in.
Check whether XML is well-formed, with precise error location and document statistics.
Explore XML as a collapsible element tree with attributes and text highlighted.
Describe what you want to match and get a working regular expression with explanations and examples.
Looking for something else? Browse all tools