Runs locally — nothing is uploaded
Result
Nothing yet — enter data or press Example.
How to use
- 1Paste XML or load a file.
- 2If it is malformed, fix the spot shown by line and column.
- 3Choose the indent or Minify.
- 4Copy or download the result.
No. Elements with text, mixed content or xml:space="preserve" are kept exactly; only whitespace between elements is added or removed.
Matching, properly nested tags, one root element, quoted and unique attributes, valid entity references, comments, CDATA and processing instructions. It does not validate against a DTD or schema.
XML predefines only & < > " and '. Other named entities need a DOCTYPE that declares them; write   instead.
No, parsing runs in your browser.
Related tools
JSON formatterValidate, pretty-print or minify JSON
JSON ↔ CSV converterFlatten JSON to CSV, or turn CSV into JSON
JSON ↔ YAML converterConvert configs between JSON and YAML
JSON to SQLCREATE TABLE and INSERTs from a JSON array
JSON to TypeScriptInfer TypeScript interfaces from JSON
Data size calculatorConvert data sizes and estimate download time
Messy data?
Send a sample — we reply within one business day with an approach and a quote.