Nifty / Tools / Convert

XML to JSON

Convert XML to JSON. Attributes are kept as @name keys, and repeated elements become arrays.

xml-to-json
XMLDrop a file here
JSON
Loading…

Runs in your browser. Nothing you paste is uploaded or stored.

How to use the XML to JSON

  1. Paste XML on the left.
  2. Check the JSON on the right.
  3. Copy it.

Questions

Is my data uploaded anywhere?

No. The tool runs entirely in your browser. Nothing you paste or drop is sent to a server, logged or stored, so it's safe for API responses, config files and other private data.

How are attributes converted?

Each attribute becomes a key starting with @, for example id="bk101" becomes "@id": "bk101".

Related tools