XML

XML Formatter

Beautify and indent XML — locally in your browser.

XML input
Output

Result appears here after you select

{ } How to use

  1. Paste your XML.
  2. Select Process to indent it, two spaces per level.

{ } How it works

XML Formatter works on the text you provide. Select Process ▸ and it runs entirely in your browser — nothing is uploaded to a server — then shows the result in the Output panel.

Input

  • XML input — paste or type your input in the left panel (use Sample for an example)

Output

XML text — copy or download it from the Output panel.

{ } Common uses

  • Make a minified or single-line XML document readable.
  • Re-indent a file that was edited by hand into an inconsistent shape.
  • Inspect the structure of a SOAP or config document.

{ } Limitations

  • Whitespace between tags is collapsed before re-indenting, so any whitespace that was significant — in mixed content, or inside an element that holds formatted text — is lost. Use the minifier or leave such documents alone.
  • Malformed XML is reported with a line and column instead of being formatted.
  • This is a text re-indenter, not a serialiser: it does not normalise attribute order, quote style or self-closing tags.

{ } FAQ

Is my data uploaded to a server?

No. Everything runs locally in your browser — your files never leave your device.

Can I process more than one file at once?

This tool works on one input at a time.

Is this tool free?

Yes — it’s completely free and needs no sign-up.

Will it change my attribute values?

No. Only the whitespace between tags is touched; attributes and text content are copied through as they are.