Convert XML to JSON in your browser - feed legacy enterprise data into modern scripts and APIs.
XML still powers a surprising amount of enterprise infrastructure: SOAP APIs, configuration files, Office documents, RSS and Atom feeds. JSON has taken over almost everywhere else. Going XML to JSON is the bridge between the two worlds - get legacy data into a shape modern JavaScript, Python, and REST tools can consume in one line.
We parse with fast-xml-parser. Attributes become "@_attr" keys on the parent object, text content becomes "#text", and repeated tags collapse to arrays automatically. Self-closing tags map to null. Comments and processing instructions are dropped. Everything runs in your browser; no XML is uploaded.
XML (Extensible Markup Language) is a verbose, hierarchical text format that predates JSON. Still common in enterprise APIs, RSS feeds, Office documents, and configuration files.
JSON (JavaScript Object Notation) is the lingua franca of structured data on the web. Arrays, objects, strings, numbers, booleans. Read by every modern programming language.
Drag a XML onto the converter above, or click the box to pick one from your device.
We've preselected JSON as the output format. Change it from the dropdown if you want a different target.
Click Convert and wait for the progress bar to finish. Download the JSON when it's ready.
Flatten a JSON array of objects into a CSV file - paste into Excel, Google Sheets, or any spreadsheet tool.
Convert a CSV file to JSON in your browser - perfect for piping spreadsheets into scripts, APIs, or LLMs.
Convert YAML config to JSON for tools, APIs, and scripts that prefer JSON syntax.