JSON to XML Converter

Paste JSON and get the equivalent XML.

How to use JSON to XML Converter

  1. Paste your JSON into the box.
  2. Click convert — the equivalent XML appears, indented and wrapped in a root element.
  3. Copy the result.

Frequently asked questions

What tag name do array items get?

A generic <item> tag, not the array's own property name — so an array under a "tags" key produces a list of <item> elements, not <tags> elements.

Does it escape special characters like < or & inside string values?

No — values are inserted directly into the XML without escaping, so a string containing a literal < or & will produce invalid XML. Worth checking for those characters in your JSON before relying on the output.

What happens to object keys that aren't valid XML tag names?

Any character outside letters, digits, underscore, and hyphen is replaced with an underscore, so a key like "first name" becomes the tag <first_name>.

Community

Loading...