XML to JSON Converter
Convert XML documents to JSON format instantly — with attribute handling options, array detection, and pretty-printed output — all in your browser.
Get notified the day we launch. No spam, ever.
What to expect
Built for developers
Convert XML to JSON with configurable attribute handling, text node mapping, and pretty-printed or compact output modes.
Runs client-side. Your data never leaves your browser.
No ads, no trackers, no popups. Pure focus.
Paste code or upload files. Both modes supported.
Share output with teammates via a permanent link.
Adapts to your system preference automatically.
Fully responsive. Works on any screen size.
About this tool
OpenFormatter's XML to JSON Converter converts XML documents to JSON format online for free. Handles XML attributes (as @attr or merged), text nodes, CDATA sections, namespaces, and nested elements. Supports pretty-printed and minified JSON output. Configurable attribute prefix, text node key, and array detection. All processing happens in your browser — no data is sent to any server.