Tools/JSON to XML Converter
Data & Config Formats

JSON to XML Converter

Turn a JSON document into well-formed XML — nested objects become child elements and @_ prefixed keys become attributes.

Free & unlimitedRuns in your browserNo sign-up required
Loading tool…
How it works

Three steps, no setup

1

Paste your JSON

Use @_attributeName keys where you want XML attributes instead of child elements.

2

Get formatted XML

The structure is rebuilt as nested, indented XML tags.

3

Copy the markup

Ready for SOAP payloads, RSS feeds, or legacy system integration.

Common questions

Frequently asked questions

How do I add an XML attribute?
Prefix the JSON key with @_, for example "@_id": "42" becomes the id="42" attribute on the parent element.
What about arrays?
Arrays are converted into repeated sibling elements sharing the same tag name.
Chat with us
Usually replies in minutes