milotic

XML ↔ JSON converter

Paste an .xml document — get a plain JS object, attributes prefixed @_. Or paste a JSON object with a single root key — get formatted XML via fast-xml-parser@5. Runs locally in your browser — no server round-trip.

Direction
Paste an XML document — get a plain JS object. Attributes are prefixed `@_`; mixed-content text nodes land under `#text`. Numbers and booleans are coerced from text.
XML input
Well-formed XML — single root element, attributes optional. Comments and processing instructions are dropped on parse.
Output
Paste an XML document above to see the converted output here.