XML ↔ JSON

Convert XML to JSON and JSON back to XML. Free, no sign-up, files stay on your device.

🔒 100% private — processing happens in your browser. Nothing is uploaded.

How to use the xml to json converter

  1. Paste XML or JSON, or open a file (XML, RSS, SVG, KML, GPX or JSON).
  2. Click XML → JSON or JSON → XML.
  3. Copy the result or download it.

Convert API responses, RSS feeds, sitemaps, config files and data exports between XML and JSON. Repeated XML elements become JSON arrays, attributes are kept with an @ prefix and text next to child elements is stored as #text — the same convention works in reverse, so you can round-trip data. Invalid input is reported with the parser error so you can find the problem quickly.