XML Formatter & Beautifier

Paste an XML document to format it with proper indentation, or minify it to one line.

Features

Beautify / minify toggle
Syntax highlighting
Attribute line wrapping

How to Use

1. Paste your XML into the input box.

2. Click Format to beautify, or Minify to compress.

3. Copy the formatted output.

Frequently Asked Questions

Can I minify XML?
Yes, toggle the minify option to remove all unnecessary whitespace.

Related Tools