XML to JSON
Turn XML feeds and files into JSON you can use in JavaScript and APIs.
- Your data never leaves your device
- 100% free
- No sign-up
- Works offline after first load
How to convert XML to JSON
- Paste XML or open a file.
- Choose how attributes, arrays, types and namespaces are handled.
- Copy or download the JSON, or browse it in the tree.
About XML to JSON
Convert XML to clean JSON.
Everything works in your browser, so it is instant and private, and your settings are remembered on this device.
Good for
- Using XML APIs and feeds in JavaScript
- Migrating XML configs to JSON
- Reading SOAP responses
Tip: Use “Remove namespaces” for feeds and SOAP so keys read title instead of atom:title.
Frequently asked questions
How are attributes converted?
As keys with a prefix (@id by default, or _ or $), merged as normal keys, or ignored — your choice.
Why is one element an object and another an array?
Repeated elements become arrays automatically. Choose “Every child element is an array” for a predictable shape that code can rely on.
Which XML files work?
Any well-formed XML: RSS and Atom feeds, SOAP, SVG, sitemaps, Android and .NET configs, plist, KML, GPX and more.
What if my XML is broken?
You get the parser’s message with the line and column, and the line is marked in the editor.
Is my data uploaded?
No. Everything is processed by JavaScript in your browser — nothing you paste or open is sent to a server, so it is safe for API responses, tokens, configs and customer data. It also works offline once the page has loaded.