XML Formatter
Paste your XML into the input area, pick an indent style, then click Format, Validate, or Minify.
- Paste XML into the textarea
- Choose an indent style (2 spaces, 4 spaces, or tab)
- Click Format to pretty-print with indentation
- Click Validate to check well-formedness
- Click Minify to compress by removing whitespace
- Copy the result or copy a shareable link
Is my data safe?
Yes. All processing uses the built-in DOMParser in your browser. No data is ever sent to a server.
What is the difference between Format, Validate, and Minify?
Format adds indentation to make XML readable. Validate checks that XML is well-formed and reports the line number of the first error. Minify removes all unnecessary whitespace to reduce size.
How do shareable links work?
Use Copy link to get a shareable URL that restores your input and indent style for anyone who opens it.