Online JSON to XML Converter

Convert JSON payloads into well-formed, indented XML documents for legacy APIs, SOAP web services, and RSS feeds.

Runs locally 0 lines • 0 bytes Ready
Tip: drop a file anywhere on the page
Input
Paste, type or drop a file
Result
Updates as you type
// Output will appear here…
About this tool

How the JSON to XML works

Transform JSON data into well-formed, indented XML. Custom root tags, array handling, and attribute options. 100% client-side privacy.

How to use the JSON to XML

  1. Paste JSON data.
  2. Set the root element name.
  3. Copy or download the indented XML.

JSON to XML example

Input
{"book":{"title":"Dune","year":1965}}
Result
<?xml version="1.0" encoding="UTF-8"?>
<root>
  <book>
    <title>Dune</title>
    <year>1965</year>
  </book>
</root>

When to use it

  • Sending data to SOAP services and older enterprise APIs.
  • Producing RSS-style feeds and sitemap fragments.
  • Importing data into tools that only accept XML.

Tip: Special characters such as & and < are escaped automatically so the XML stays well-formed.

Configurable Root Tag

Set a custom root element; a single top-level key such as {"catalog": …} becomes the root automatically.

Attributes & Text Nodes

Keys starting with @ become XML attributes and #text becomes element text, matching the XML to JSON output.

Special Character Escaping

Escapes &, < and > in text and quotes in attributes, and fixes tag names that XML does not allow.

One-Click Download

Export and download the generated XML as a .xml file instantly.

FAQ

Common questions

How does JSON to XML handle array items?

Top-level array elements are wrapped in <item> tags, and nested arrays repeat the parent property tag name.

Can I customize the root XML tag?

Yes! You can specify any valid XML tag name (such as <data>, <users>, or <response>) in the options bar.

Are XML entities escaped?

Yes, all special characters inside string values are safely encoded into standard XML character entities.

Is my data private during conversion?

Yes, conversion runs completely in your browser without any server communication.