DEVtoy
Language · English

XML to JSON

Convert XML to JSON in your browser. Paste a document or open a local file, then copy or download the converted result.

How to use

  1. Paste your input or load the example below.
  2. Adjust the options, then select “Convert to JSON”.
  3. Review the result, then copy or download it.

No uploads. No account. Processing stays in your browser.

Example input
<catalog>
  <book id="bk101" lang="en">
    <title>XML Developer's Guide</title>
    <price>44.95</price>
  </book>
  <book id="bk102">
    <title>Midnight Rain</title>
    <price>5.95</price>
  </book>
</catalog>

Related tools