ToolerCat / Data Format Converter / XML to JSON Converter

XML to JSON Converter

Paste XML, get JSON — with the exact line of any syntax error.

Validate YAML / XML / TOML → · JSON Formatter →

XML to JSON

Turn XML into JSON. Attributes become @_ keys, repeated elements become arrays, and numbers and booleans are typed automatically.

Paste or open a .xml file, fix any error at the line shown, then copy or download the .json result. Everything runs in your browser.

Other conversions

JSON to YAML · YAML to JSON · JSON to XML · JSON to CSV · CSV to JSON · JSON to TOML · TOML to JSON

Validate YAML / XML / TOML →