QueryJSON / XML to JSON

Convert XML to JSON in your browser

Paste an XML document and QueryJSON turns it into JSON you can read, query and export. Attributes become fields, repeated elements become arrays, and nothing is uploaded.

Everything runs in your browser tab. Your data is never uploaded, and it is gone when you close the tab.

How it works

  1. Paste your XML

    Paste it into the input box or open an .xml file, then click Parse.

  2. Copy the JSON

    The converted JSON replaces the XML in the input box, keeping the original nesting. Copy it from there.

  3. Or work with it as a table

    Each repeated element becomes a row. Filter it, run SQL on it, or download it as CSV or as flat JSON rows.

Good to know

Frequently asked questions

How are XML attributes converted?

Attributes become fields on the same object as the element's child elements, so <book id="b1"> becomes { "id": "b1", ... }.

Why are numbers in quotes after converting XML?

XML stores every value as text, so values stay strings. You can cast them in SQL, for example "book.price"::numeric.

Can I convert XML to CSV too?

Yes. After parsing, each repeated element is a row in the table, and the CSV button downloads it.

Is my XML uploaded anywhere?

No. The conversion runs in your browser tab and nothing is sent to a server.

More tools