WebCodeIn

XML Formatter

Format, beautify, or minify XML with adjustable indentation — click Format or Minify to run it.

Processed locally in your browser — nothing is sent to a server.

Input
3 lines84 charsValid
Output
0 lines0 charsValid

About this tool

Paste XML and click Format for consistently indented, readable output, or Minify for a compact version with comments and inter-tag whitespace removed.

Frequently asked questions

What does this tool use to format XML?
Prettier's XML plugin, running entirely in your browser.
What does Minify do?
Collapses whitespace between tags and strips comments. Whitespace-sensitive elements aren't special-cased — check output if your XML relies on preserved whitespace.
Is my XML sent to your servers?
No. Formatting and minifying both run entirely in your browser.

Privacy

Every conversion runs in your browser. Nothing you paste here is sent to WebCodeIn’s servers, logged, or stored.

Related tools