Skip to content
Tools

JSON to XML Converter

Convert between JSON and XML in both directions.

Local
Output

What this tool does

Convert between JSON and XML in both directions. JSON to XML wraps each value in an element, repeats a tag for array items, and escapes special characters. XML to JSON reads the element tree back into nested objects, collecting repeated tags into arrays. Flip the direction and the output moves to the input, so a round trip is one click. It all runs in your browser.

Why testers reach for it

APIs and config files mix JSON and XML, and a quick conversion helps when you are comparing a payload against a schema, moving a fixture between formats, or reading a SOAP body as something more familiar. Doing it locally keeps request and response bodies out of a third-party service.

Good to know

  • XML element names cannot start with a digit or contain spaces, so a key like a&b becomes a_b.
  • XML has no arrays, so repeated elements with the same tag are read back as a JSON array.
  • Attributes are not round-tripped; the tool works on element content.

Common use cases

  • Turning a JSON fixture into an XML request body.
  • Reading a SOAP or RSS snippet as JSON.
  • Converting config between the two formats.

Frequently asked questions

Are XML attributes supported?
The tool works on element content. Repeated elements with the same tag are read back into a JSON array, since XML has no array type.
Is my data uploaded?
No. The conversion runs entirely in your browser.

Learning resources

Testsmith also runs hands-on courses and a free practice app for the skills behind this tool.

Feedback welcome

Found a bug in this tool, or want it to do something it does not? Tell us and we will take a look.