Subformer
Free · No signup · Runs in your browser
XML
JSON

XML to JSON Converter

Convert XML to JSON in your browser - feed legacy enterprise data into modern scripts and APIs.

Why convert XML to JSON?

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

About XML

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

About JSON

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.

How to convert XML to JSON

  1. 01

    Drop your XML file

    Drag a XML onto the converter above, or click the box to pick one from your device.

  2. 02

    JSON is already selected

    We've preselected JSON as the output format. Change it from the dropdown if you want a different target.

  3. 03

    Convert and download

    Click Convert and wait for the progress bar to finish. Download the JSON when it's ready.

XML to JSON FAQ

See all formats →