Output appears here...How to use
Paste the XML
A feed, an export, or a SOAP body all work. Try sample loads a short book element with an id attribute so you can see how attributes map.
Press Convert to JSON
The parser reads elements, attributes, and text, then prints typed JSON. You convert xml to json online without the detail being flattened away or uploaded anywhere.
Use the JSON
Copy the output into your code or a config. Attribute keys keep their @_ prefix, so you can always tell them apart from child elements.
Why XML to JSON
- Paste XML and run xml to json in one click. Attributes, nesting, and primitive types all come through, so this xml to json converter keeps the detail.
- It auto-detects numbers and booleans, so you do not get everything back as strings.
- Runs in your browser. Your data never leaves your device, which keeps private documents private.
- It acts as an xml to json formatter too, pretty-printing the result with a two-space indent.
- Free with no limit. Use this xml to json converter online as often as you need, with no sign up.