← All tools

📊 XML to JSON

Convert XML documents into JSON you can actually work with.

Paste XML, or drop an .xml file below.

🔒 Files never leave your browser. Everything is processed locally on your device.
Share this tool:

How to use

  1. Paste your XML into the box, or drop an .xml file.
  2. Click Convert to JSON.
  3. Copy the JSON or download it as a file.

FAQs

How are attributes and repeated elements handled?

Attributes land under an "@attributes" key, and repeated sibling elements become arrays — so <item>a</item><item>b</item> becomes "item": ["a", "b"].

My XML won't parse — what now?

The converter uses your browser's XML parser and shows its error message verbatim. The most common culprits are unescaped ampersands (& should be &amp;) and unclosed tags.

Is my data uploaded anywhere?

No. Conversion happens entirely in your browser — your data is never sent to any server.