Free browser tool

XML to JSON
Converter

Turn XML elements, attributes, repeated nodes, and text content into formatted JSON for easier use in modern applications.

✓ No uploads✓ No signup✓ Instant download
Private mode: your data stays in this browser
INPUT · XML
OUTPUT · JSON

Your converted JSON
will appear here.

Maximum file size: 10 MB · Nothing is uploaded

How it works

From XML to JSON
in three steps.

  1. 01

    Add your XML

    Drop a file into the converter or paste your data directly into the input panel.

  2. 02

    Convert locally

    Press convert. Your browser handles the transformation without sending the file to us.

  3. 03

    Copy or download

    Review the result, copy it to your clipboard, or save it as a .json file.

Good to know

Clean conversion.
No surprises.

  • Attributes use an @ prefix so they remain distinct from child elements.
  • Repeated elements become JSON arrays automatically.
  • Mixed text content is stored under the #text property.
Common questions

XML to JSON,
explained.

How are XML attributes represented?+

Attribute names receive an @ prefix, such as @id, to distinguish them from nested elements.

What happens to repeated XML elements?+

Sibling elements with the same name are grouped into a JSON array.

Are my files uploaded?+

No. TidyFormat processes the conversion locally in your browser. Your input and output files are not sent to our servers.