EN
PortuguêsEnglishEspañol
All tools
Developer tools 100% free

JSON to XML (and XML to JSON)

Convert JSON to XML and XML to JSON, with attributes, lists and indentation, validating the syntax right in your browser.

How to use

Thank you so much for helping!

Every donation helps pay for the servers and keeps the tools free for everyone. Pick or type an amount:

Secure payment by Stripe. Opens in a new tab.

Back to Format and convert

Paste the JSON or XML to convert.

Available in: PortuguêsEspañolEnglish

Advertisement

JSON to XML (and XML to JSON): what it is for

Paste JSON to generate the equivalent XML, with a declaration, indentation and arrays as repeated elements, or paste XML to get JSON, with attributes as @ and numbers and booleans converted.

The data isn't sent to any server: the conversion happens in your browser.

How to use

  1. Choose the conversion direction.
  2. Paste the JSON or XML.
  3. Copy the result.

When to use it

  • Integrating REST APIs with systems that use XML.
  • Reading XML files and invoices as JSON.
  • Migrating settings between formats.

Frequently asked questions

How do JSON arrays become XML?

Each array item becomes a repeated element with the same name as the key. For example, "tags": ["a", "b"] becomes <tags>a</tags><tags>b</tags>.

What about XML attributes?

When converting XML to JSON, attributes appear with the @ prefix (like "@id") and the text of an element with attributes appears in "#text". The same format works on the way back.

Is it really free?

Yes, 100% free. No sign-up, no subscription and no usage limits. All Tools123 tools are free and run right in your browser.

Similar tools

The tools are provided as is, without warranty. We are not responsible for the results or for how they are used.