GoWebTools

XML to JSON Converter

Convert XML to JSON online. Handles attributes, nested nodes and CDATA, with a compact output mode. Free, instant, nothing uploaded.

Input

Result

The result appears here as you type.

What this tool is for

Turn an XML document, an RSS feed or a SOAP response into JSON you can work with. Attributes are preserved with a prefix so no information is lost in translation, and CDATA sections are unwrapped.

How to use it

  1. Paste the XML document.
  2. Choose whether to keep attributes and how to name them.
  3. Copy the JSON result.

Frequently asked questions

What happens to attributes?

They are kept as keys prefixed with @, so <item id="3"> becomes {"@id":"3"}. Turning them off drops attributes entirely for a flatter result.