TonySkill

XML to JSON

Convert a XML file or snippet to JSON instantly. Attributes, repeated elements as arrays, numbers recognised. Everything runs in your browser.

Accepted: JSON, CSV, TSV, XML, YAML, YML, TXT, RSS, ATOM, KML, GPX, XSD, PLIST · Max 50 MB per file

Processed on your device — nothing is uploaded.

Tip: paste text anywhere on the page (Ctrl+V).

How to convert XML to JSON

  1. Drop your XML file, or paste its content directly.

  2. The JSON appears right next to it; adjust the options if needed. An error? Its line is shown.

  3. Copy the result or download the JSON file.

Why use this tool

Four formats, every direction
CSV (comma, semicolon, tab), JSON, XML and YAML. The input format is detected and the result updates with every keystroke.
Errors explained
A missing comma, a badly closed tag, wrong indentation: the line and column are shown, the line is highlighted and “Go to error” puts the cursor there.
Useful settings
CSV headers and delimiter, number detection, indentation, key sorting, XML element names, Excel-friendly CSV. Table preview of the first 100 rows.
Nothing leaves your device
The conversion runs in your browser: your data is never sent to a server, even 50 MB files.

More data tools