Convert · Runs in your browser
XML to JSON Converter
Parse XML documents, RSS feeds or SOAP responses into JSON. Repeated elements become arrays automatically.
XML
Drop a file to load it
JSON
How to use it
- Paste XML into the left editor, or upload an .xml file.
- Choose whether to keep attributes and detect numbers and booleans.
- Copy the JSON or download it as a .json file.
Attributes
Attributes are kept as @-prefixed keys (id="1" → "@id": 1), and text next to child elements or attributes is stored under #text. This matches the JSON to XML converter, so you can round-trip.
Arrays
Elements that appear more than once become arrays. Turn on “Always use arrays” for a consistent shape when some elements appear only once.
Errors
If the XML isn’t well-formed, the parser’s message (with line and column) is shown instead of the output.
More convert tools
All free, all private, all running locally in your browser.
JSON to CSVTurn JSON arrays into spreadsheet rowsCSV to JSONTurn spreadsheets into JSONJSON to XMLConvert JSON to well-formed XMLJSON to YAMLConvert JSON to readable YAMLYAML to JSONConvert YAML config to JSONJSON to ExcelDownload JSON as an .xlsx fileExcel to JSONConvert .xlsx sheets to JSONJSON to SQLGenerate INSERT statementsSQL to JSONTurn INSERT statements into JSONJSON to MarkdownTurn JSON into a Markdown tableFlatten JSONFlatten or unflatten nested JSON