XML Formatter & Validator
Format, indent, and validate XML online. Free, instant, and runs entirely in your browser.
About XML Formatting
The XML Formatter takes any well-formed XML — minified, machine-generated, or just messy — and produces a clean, indented version where the document structure is visually obvious. The tool also acts as a quick well-formedness check: malformed XML produces a clear error message instead of silent garbage.
How to use
Paste your XML and press Format. Choose your indentation style. To go in the other direction, press Minify to strip every byte of insignificant whitespace between tags. Attributes, namespaces, CDATA sections, and processing instructions are preserved exactly.
Privacy
Formatting runs entirely in your browser. Your XML is never uploaded.