XML Minify / Format

About this tool:

How to Use

What this tool does

Minify and format XML. Choose indentation, upload local files, copy output, and clear content. All runs in your browser.

Steps

  1. Paste or upload XML into the editor.
  2. Click Minify to compress or Format to prettify.
  3. Adjust indentation with the dropdown if needed.

Examples

<root> <item>1</item> </root>
→
<root>
    <item>1</item>
</root>

Notes