DevToolsmith

XML Minifier

Removes formatting between element-only children using the strict XML parser.

Runs 100% in your browser — nothing is uploaded

Input
Tip: drop a file here61 chars · 61 bytes · 4 lines
Result
0 chars · 0 bytes · 0 lines

Up to 200,000 input characters and 2 million output characters. Processing stays on this device.

Use XML Minifier

Removes formatting between element-only children using the strict XML parser. Start with the sample, select the options and run the tool. Copy or download the result after reviewing it.

Behavior and limits

Removes formatting between element-only children using the strict XML parser. Mixed text, CDATA and xml:space="preserve" content retain their whitespace. Review element-only whitespace semantics in the consuming application. External resources are never fetched.

Example input

<users>
  <!-- Example -->
  <user id="1">Ada</user>
</users>

Expected behavior for the example

Removes formatting between users and user, preserving Ada and the id attribute. The comment stays unless removal is selected.

Check important output in the application that will consume it. Use the tool directory to find related formats and tasks.

Frequently asked questions

How does XML Minifier handle my input?

Removes formatting between element-only children using the strict XML parser. Mixed text, CDATA and xml:space="preserve" content retain their whitespace. Review element-only whitespace semantics in the consuming application. External resources are never fetched.

Is my input uploaded or saved automatically?

Processing runs locally in this browser. Input and results are not saved automatically. Downloads happen only when you choose them. The static preview blocks scripts and external resources when one is available.