XML Formatter & XML ⇄ JSON
Pretty-print or minify XML, validate with error locations, and convert between XML and JSON.
Loading tool…
Runs locally in your browser. Your files are never uploaded.
About this tool
Working with XML can be hard when formatting is inconsistent or the file contains errors. This tool formats XML for readability or compresses it, points out validation errors with line numbers, and converts XML to JSON and back, using @ keys for attributes, so you can move data between the two formats without leaving the page.
How to use it
- Paste or drop an XML or JSON file into the window.
- Choose to format, minify, validate or convert, then set options.
- Copy the result or download the processed file.