SimplConvert

XML to JSON converter

Turn XML, RSS or SOAP responses into JSON.Runs in your browser, nothing uploaded

Loading the tool…

About XML to JSON

Paste XML and get the same data as JSON, ready to use in JavaScript, Python or any modern API. It is the quickest way to work with an RSS feed, a SOAP response, a sitemap or an old config file in code that expects JSON.

Attributes become keys that start with @, tags that repeat become arrays, and numbers and true/false become real JSON values. Switch either option off if you want everything kept as text.

How to use it

  1. Paste your XML or open an .xml file. The JSON appears as you type.
  2. Choose whether to keep attributes and convert numbers.
  3. Copy the JSON or download it as a .json file.

How the XML maps to JSON

<book id="7"><title>Layoff</title></book> becomes {"book": {"@id": 7, "title": "Layoff"}}. When an element has both attributes and text, the text goes in a "#text" key. Two or more <book> tags inside the same parent become a list.

If your XML has errors, such as a tag that is never closed, you see the line and column of the problem instead of a half-converted result.

Questions

What happens to text with tags inside it, like <p>Hello <b>you</b></p>?

JSON has no way to show mixed text and tags in order, so the plain text goes in "#text" and the inner tags become keys. For documents like that, keep the XML or convert it to HTML instead.

Can I convert the JSON back to XML?

Yes. JSON to XML uses the same @attribute and #text rules, so the round trip gives you equivalent XML.

Is my data uploaded?

Everything happens inside your browser. Your file is never uploaded to a server, so it stays private and the tool keeps working even on a slow connection.