XML Formatter
Pretty-print or minify XML and catch well-formedness errors.
Runs entirely in your browser. Your input is never sent to a server.
About the xml formatter
Make dense XML readable or compact it for transport. The formatter validates well-formedness first, then applies consistent indentation. Comments, CDATA and attributes are preserved.
How to use it
- Paste your XML.
- Choose Format or Minify and the indent width.
- Copy or download the result.
Frequently asked questions
Does it validate against an XSD?
No. It checks that the XML is well formed, not that it satisfies a schema.
Are comments and CDATA kept?
Yes. They are preserved as written.
Related tools
JSON Formatter & Validator
Format, minify, validate and explore JSON with precise error positions.
Data FormatsPopular
JSON to CSV Converter
Flatten a JSON array into CSV with custom delimiters and nested-key flattening.
Data Formats
SQL Formatter
Beautify SQL with consistent keyword case, indentation and clause layout.
Data Formats
Base64 Encoder / Decoder
Encode or decode Base64 text with full Unicode and URL-safe support.
Encoding & SecurityPopular