JSON to XML

Paste JSON and convert to a simple XML representation. Arrays become repeated elements; keys become tag names.

JSON to XML

How it works

We traverse the parsed JSON and build XML tags. Root is <root>. Arrays use the key as tag for each item.

When to use it

Use when you need XML from an API that returns JSON.

Frequently asked questions

Invalid tag names?

We sanitize keys for XML (e.g. spaces to underscores). Numbers become tags like item.