Skip to content
Toolshed

XML to JSON

Convert XML to JSON in your browser: attributes with an @ prefix, #text for element text and arrays for repeated nodes. Copy or download; no upload.

  • No uploads
  • No limits
  • No signup
Input:
XML
Output:
JSON
Runs on:
Your device
Size limit:
None
Account:
Not needed

How to use XML to JSON

  1. Paste your XML

    Paste an XML document, such as an API response, RSS feed or config file. It stays in your browser.

  2. Choose how attributes and text map

    Keep or drop attributes, set their prefix (@ by default) and the key for element text (#text). Optionally use arrays for every child and convert numbers.

  3. Convert and save

    Press Convert, then copy the JSON or download it as a .json file.

Why XML to JSON on Toolshed

  • No uploads

    Everything runs in this browser tab. Your files never leave your device.

  • No limits

    No file-size caps, no daily quotas. Process as much as your device can handle.

  • No signup

    No account, no email, no watermark.

Frequently asked questions

How are attributes and text stored?

Attributes become keys with a prefix, so id="7" becomes "@id": "7". When an element has attributes or children as well as text, the text goes under "#text". An element with only text becomes a plain string.

When do I get an array?

Elements that repeat under the same parent become an array. Turn on "Always use arrays" so a list with only one item is still an array, which keeps your code simpler.

Is my XML uploaded?

No. Your browser parses the XML on your device and nothing is sent anywhere.

Is my data sent anywhere?

No. XML to JSON runs entirely in your browser. Everything you enter stays on your device and is never sent to a server.

Is XML to JSON really free?

Yes. There's no account and no sign-up, and your result shows right away. Ads on the page keep it free.

Does it work offline?

Once the page has loaded, processing happens locally, so it keeps working even if your connection drops.