Convert XML to JSON

Paste your XML or drop its file: elements, attributes and text become readable JSON, which converts back to XML without losing anything.

or drop it here

Start typing: the preview appears at once. Nothing is transmitted.

  • Your data stays yours

    Nothing is transmitted, nothing is kept

  • No watermark

    The free result is complete

  • No usage cap

    Unlimited with a free account

How it works

Three steps, nothing more.

  1. Step 01

    Paste your XML, or drop the file that holds it.

  2. Step 02

    Choose whether numbers and booleans keep their type.

  3. Step 03

    Download the JSON, or copy it.

What sets it apart

Built for the result.

A structure you can read

Each element becomes a key, and sibling elements sharing a name become a list: the JSON follows the document tree.

02

Attributes kept apart

An attribute becomes a key prefixed with @, and the text of an element that has some goes under #text: nothing gets mixed up, and converting back to XML puts them in place.

Accepted formats

Drop them as they are, no conversion needed first.

  • JSON
  • CSV
  • TSV
  • XML
  • YAML

Privacy

Where your data is processed

With this tool, what you paste or drop is not transmitted anywhere: not to us, not to any third party. We know neither its contents nor the file name.

Nothing is kept, because nothing reaches us.

Frequently asked

What people ask us.

Another question? The contact address is at the bottom of the page.

The five predefined entities, such as &, and numeric references are decoded. Entities declared by a DTD stay text, and an external entity is refused: no file or address is ever read.

Next

Related tools.