XML Formatter

Validate, beautify, minify and convert XML to JSON — attributes preserved, error line located

Input

Output

How to use

Beautify & Validate: parse and re-indent XML to canonical form, pinpointing the failing line.

Minify: strip whitespace between tags to produce compact XML.

To JSON: parse XML into JSON (attributes kept with an @_ prefix).

Memory: when on, your last input is saved to local storage.

Related tools