XML Beautify/Minify
Pretty-print or minify XML.
Runs in your browser: what you paste is never uploaded
How to use XML Beautify/Minify
- 1Paste or type your inputUse the box above, or click Sample to try it with an example.
- 2Choose your optionsChoose Beautify or Minify, and the indent size.
- 3Copy the resultCopy it with one click. Nothing is sent anywhere.
About XML Beautify/Minify
Indent XML so its structure is easy to read, or minify it into a single compact line. Mismatched or unclosed tags are reported.
Frequently asked questions
Does it check that my XML is well-formed?
It reports mismatched and unclosed tags with their position. It doesn't validate against a schema (XSD or DTD).
Are CDATA sections and comments kept?
CDATA sections are always kept. Comments are kept when beautifying and removed when minifying.
Is what I paste sent anywhere?
No. The tool runs entirely in your browser and never sends what you type or paste to a server.
Is it free?
Yes. It's free, with no sign-up and no limits.