Category: Developer tools

XML minifier

System ideaMissing a tool?

remove whitespace between XML tags to make text compact, locally in your browser

Use XML minifier to remove whitespace between XML tags to make text compact, copy the compact XML, with browser-local processing.

Minified.

Original size207 BMinified size186 B
Minified XML
<?xml version="1.0" encoding="UTF-8"?><catalog site="LocalTools"><tool id="xml-minifier"><name>XML Minifier</name><private>true</private></tool><!-- everything runs locally --></catalog>

This strips whitespace between tags; it does not validate well-formedness.

Everything on this page is processed in your browser. Nothing is uploaded.

What this tool does

This XML minifier lets you remove whitespace between XML tags to make text compact and copy the compact XML in the browser. It is limited to the implemented controls: the XML input and size-difference preview. Inputs, files and results are not uploaded to LocalTools. It does not support XML Schema validation, DTD/entity resolution, DOM repair, XML formatting, or RSS semantic checks.

How to use it

  1. Enter or choose XML text.
  2. Set the XML input and size-difference preview.
  3. Review the result and copy the compact XML.

Privacy

This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.

Frequently asked questions

What whitespace does XML minification remove?
It mainly removes whitespace-only text between tags and extra whitespace inside opening tags; it does not build a DOM or decide which business content can be removed.
Are comments and CDATA sections preserved?
Comments and CDATA sections are preserved; the tool mainly removes whitespace-only text between tags.
What is the difference between XML minify and XML format?
Minifying XML makes text compact; formatting XML does the opposite by re-indenting it for reading.
Does this XML minifier upload the XML I paste?
No. XML text, settings and results stay in your browser and are not uploaded to LocalTools.
What XML validation or DOM processing is not supported?
It does not support XML Schema validation, DTD/entity resolution, DOM repair, XML formatting, or RSS semantic checks.