XML ⇄ JSON converter

Paste XML or JSON and convert it either way. Attributes, text nodes and repeated tags are handled cleanly, and the result is pretty-printed. Nothing is uploaded.

Direction
Your XML
Options

Your data is parsed and converted entirely in your browser. Nothing is uploaded.

How it works

STEP 1

Pick a direction

Choose XML → JSON or JSON → XML. The toggle decides how your input is read and what comes out.

STEP 2

Paste your data

Drop in an XML document or a JSON object. It is parsed right in your browser — nothing leaves your device.

STEP 3

Copy the result

Get clean, pretty-printed output with attributes, text and arrays preserved. Copy it with one click.