XML to JSON
Turn a local XML document into a JSON tree of attributes, text, and child elements.
Enter text to get started.
Converting your file
Working on your device…
What this tool does
Turn a local XML document into a JSON tree of attributes, text, and child elements.
Select a supported file or paste text.
Use the options shown in the workspace.
Download the result and review it on your device.
When to use xml to json
Inspect an XML document as a JSON tree.

How to use xml to json
- Paste the text or data into this tool’s input.
- Review the xml to json options shown above.
- Run the tool and inspect the result before copying it.
Frequently asked questions
How does XML to JSON work?
Choose the input, adjust any available options, and run the tool. Turn a local XML document into a JSON tree of attributes, text, and child elements.
Is my file uploaded to ConvertExpress?
No. This demo performs this conversion in your browser. The site downloads its interface and code, but it does not upload the selected file for this tool.
Will the output always match the original?
Turn a local XML document into a JSON tree of attributes, text, and child elements. Check the result before using it for important work.
How are XML attributes represented in JSON?
Attributes appear under @attributes and direct text under #text. Repeated child element names become arrays in the resulting tree.