XML to JSON Converter

An XML export, a product feed or a SOAP response, turned into tidy JSON with attributes and arrays.

Reverse: JSON to XML

Files never leave your device — everything runs in your browser

XML still comes out of ERP systems, marketplaces, banks and RSS feeds. The converter turns XML into JSON that is pleasant to work with: elements become keys, repeated elements become arrays, attributes become keys with an @ prefix (or _ or -), and the text of an element that also has attributes goes to #text.

Values are typed: 2990 becomes a number and true a boolean, while a code with a leading zero or a long ID stays exactly as written. CDATA content is kept as text. If the receiving program expects an array even where there is only one element, switch on Repeated elements always as arrays.

Broken XML never passes silently: you get the line and column where the structure breaks, with the spot highlighted. The encoding is read from the file, and legacy encodings such as Windows-1252 work too.

Nothing is uploaded: parsing and conversion run inside your browser, so API responses, CRM exports and files with personal data stay on your device.

Options and features

How to convert XML to JSON in 3 steps

  1. 1

    Load the XML

    An .xml file, a feed, an API response or pasted text.

  2. 2

    Check the options

    Attributes and their prefix, value typing and arrays.

  3. 3

    Download the JSON

    Or carry on to Excel, CSV or PDF.

Frequently asked questions

Load the file and the JSON appears straight away, ready to download or copy.
They become keys with an @ prefix: <item id="5"> → {"item": {"@id": 5}}.
One element gives an object, several give an array. Turn on always as arrays so the shape does not depend on the count.
Yes, with the Excel button under Convert further.

Related tools