XML to JSON Converter

Convert XML elements, attributes, and text into explicit structured JSON.

XML to JSON Converter
Local input
Output
Processing…
About this tool

Made for the task at hand.

Represent XML without guessing whether repeated elements should become arrays. Every element uses name, attributes, and children; text and CDATA appear as strings in document order.

How to use

  1. Paste one well-formed XML document.
  2. Run the conversion to parse elements and attributes.
  3. Inspect the structured JSON, including ordered text children.
Your work stays yours.
Tool inputs are processed locally in your browser and are never sent to KitVerse servers. Clear the workspace when using a shared device.
Common questions
How are XML attributes represented?

They remain in an attributes object instead of being merged with child element names, avoiding collisions between attributes and elements.

Are comments and processing instructions retained?

No. Element names, attributes, ordinary text, and CDATA are represented; comments, declarations, and processing instructions are omitted.