Developer Tools

XML to JSON

Convert XML elements, attributes and repeated tags to JSON. Use it in your browser, with no account required.

No account needed

Loading tool…

How to use

  1. 1Enter your values and choose the options.
  2. 2Run the tool and review the result.
  3. 3Copy the result or save it as a file.

Good to know

Attributes use @name, direct text uses #text and repeated children become arrays. Even 90 remains a string. DOCTYPE/ENTITY are rejected; XML schemas are not validated.

Ads may process connection data. Personalization follows your privacy choices. Privacy (English)

Worked input and output example

These results come from this tool’s actual engine using the sample values below, not your personal input or saved work. Load the example in the tool to inspect the same inputs.

Example input

FieldValue
XML
<root><name>Alice</name><score>90</score></root>

Example result

{
  "root": {
    "name": "Alice",
    "score": "90"
  }
}

Related tools

All tools