XML to JSON

Available

Convert XML trees to JSON, preserving attributes as @-prefixed keys and repeated elements as arrays.

  • Data
  • xml → json
  • Local processing for supported tools
  • No queue, no waiting room

XML to JSON

Available
No upload for supported tools — the file is processed by this browser Up to 20 MB

About this converter

Convert XML trees to JSON, preserving attributes as @-prefixed keys and repeated elements as arrays.

What happens to your file

For supported tools the file is read with the browser File API and held in memory on your device. It is validated, processed by the Data & Serialization engine in a Web Worker, and the result is handed back as a download. At no point is the file sent to a server.

What to expect from the output

The tool writes JSON. Formats differ in what they can represent, so expect structure to be preserved, while formatting and comments are not representable in every target format.

How to use this converter

Four steps, none of which involve an account.

  1. 1 Choose your file

    Drop a xml file onto the drop area or browse for it.

  2. 2 Check the output

    The output format is preselected as JSON. Change it if the tool supports other targets.

  3. 3 Convert

    Everything happens on your device, so speed depends on your machine rather than a queue.

  4. 4 Download

    Save the result, then reset the tool to clear it from memory and start again.

Conversion states

Design reference

These are the six states the workspace moves through. The live tool above uses the same markup; this panel shows each one side by side so the behaviour can be reviewed without converting anything.

Frequently asked questions

Answers specific to XML to JSON.

Is this tool free?

Yes. XML to JSON is free to use and needs no account, no sign-up and no email address.

Where is my file processed?

This tool is being built for local processing, so the file is handled by your own browser. Until that engine is connected the page shows an explicit notice instead of pretending the conversion succeeded.

Which files can I use as input?

Accepted formats are XML. The converter writes JSON.

Are my data files uploaded?

No. These tools parse and convert your files locally in your browser.

How is JSON represented in XML?

A JSON object's properties become child elements. Arrays are represented by repeated sibling elements; XML text and attributes become strings and @-prefixed properties when converted back to JSON.

Other tools in this category.

Data

Convert CSV rows into a JSON array of objects.

CSV JSON

Pretty-print JSON with consistent two-space indentation.

JSON JSON

Convert JSON to JSON directly in the browser without uploading your file or creating an account.

JSON JSON

Convert JSON to JSON directly in the browser without uploading your file or creating an account.

JSON JSON

Convert an array of JSON objects into CSV.

JSON CSV

Convert JSON to XML directly in the browser without uploading your file or creating an account.

JSON XML