XML Formatter & Validator
Pretty-print, minify and validate XML instantly — private and right in your browser.
How to format XML
1Paste your XML into the input box.
2Choose your indentation.
3Click Format and copy the result.
Does it validate XML?
Yes. If the XML is malformed, you'll see a clear parser error instead of formatted output.
Is my XML private?
Yes. Everything is processed in your browser and is never uploaded to a server.