Formatters & Converters

XML to JSON Converter

Convert XML documents into structured JSON instantly.

No upload, ever No account needed Works offline
Input (Paste XML)
0 characters
Output
Auto-updated
// how to use it

Three steps, no reading required.

Paste your input

Drop text, code, or data into the input pane — from an API response, a file, anywhere.

See it process

The result updates instantly as you type.

Copy the result

Grab the output with Copy or Download, or fix the error shown if the input is invalid.

// examples

Try it with a sample.

Sample 1
<note id="1"><to>Dev</to><from>DevUtilsNow</from><tags><tag>fast</tag><tag>free</tag></tags></note>
TYPICAL ONLINE TOOL

Guesses types for you

  • Turns "007" into the number 7
  • Drops the order of repeated elements
  • Uploads your XML
DEVUTILSNOW

No guessing, order kept

  • Values stay strings, since XML has no types
  • Repeated elements collapse into an array in their original order
  • Parsed locally in your browser
// faq

Questions worth answering upfront.

No. Parsing and conversion run entirely in your browser. Your XML is never uploaded or stored.

Attributes are kept as keys prefixed with @, for example @id, so they don't collide with child element names.

Repeated child elements with the same name are collapsed into a JSON array, preserving their order.

No. XML has no types, so values are kept as strings to avoid guessing. Convert them in your code if you need numbers or booleans.

Yes. Every tool on DevUtilsNow is free to use with no account required.

In Python, json.dumps(xmltodict.parse(xml_text)) uses the same @ prefix for attributes as this tool. In C#, JsonConvert.SerializeXmlNode from Newtonsoft.Json converts an XmlDocument. For a one-off document, paste it here.

// related guides

Guides that pair with this tool

All guides →

How to Convert XML to JSON

How XML maps to JSON, how attributes and repeated elements are represented, and why values stay strings.

Read guide →

Need another tool?

36+ browser-based utilities — all free, all private, nothing to install.

Browse all tools →
Last updated: Oct 10, 2026