Language

Developer

XML Minifier

Remove indentation between XML elements while retaining text content, comments and CDATA.

Workspace⌁ Processed on your device

Loading tool…

Your files are processed on your device and are not uploaded for processing.

01 /

How to use this tool

  1. Enter your values or load the example shown in the tool.
  2. Check the available settings, then run the tool.
  3. Check the result, then copy it or download the text file.
02 /

Example

<catalog>
  <item>Tea</item>
</catalog>
→ <catalog><item>Tea</item></catalog>
03 /

When to use this tool

Remove indentation from element-based XML for a compact test fixture.

Supported formats & limits

Up to 5 MiB of XML. DTDs and entity declarations are rejected. Formatting preserves mixed text, CDATA and xml:space; minifying only removes indentation between element children. This is syntax parsing, not XSD validation.

Something isn’t working ↗

Good to know

What happens when I change the input?

An edited input needs a new result. Run the action again; previous download links are removed so you cannot mistake an old output for the current one.

What inputs and limits apply to XML Minifier?

Up to 5 MiB of XML. DTDs and entity declarations are rejected. Formatting preserves mixed text, CDATA and xml:space; minifying only removes indentation between element children. This is syntax parsing, not XSD validation.