XML formatter and validator

Indent messy XML so you can read it, or compress it for production.

How to format XML

  1. 01Paste your XML.
  2. 02Choose Format or Minify.
  3. 03Copy or download the result.

FAQ

No. Everything runs in your browser with JavaScript. Nothing you type is uploaded, and closing the tab clears it.