onlinejsontools logo

Json to xml converter

World's simplest json tool

Free online JSON to XML converter. Just load your JSON and it will automatically get converted to XML. There are no ads, popups or nonsense, just an awesome JSON to XML converter. Load JSON, get XML. Created by developers for developers.
we made something new! fun with fractals
We love having fun so we created fractal art generators – dragon fractals, polyflake fractals, z-fractals and many more. Check them out!
fullscreen fullscreen_exit
Indentation
Indents with two spaces
Indents with one tab
Outputs minified result
Converting
Prefix the output with XML meta
Json to xml converter tool What is a json to xml converter?
This tool converts JavaScript Object Notation (JSON) data structures to XML (Extensible Markup Language). You can change indentation of the output XML and use either tabs or spaces. You can also toggle if you want to prefix XML with a meta tag.
Json to xml converter examples Click to use
Convert a simple JSON object
This example converts a simple JSON object with two keys and two values to XML.
{ "foo": "bar", "baz": "baa" }
<?xml version="1.0" encoding="UTF-8" ?> <root> <foo>bar</foo> <baz>baa</baz> </root>
Convert a JSON array
This example converts a JSON array of numbers. It also turns off XML metadata.
[0, 1, 2]
<root> <0>0</0> <1>1</1> <2>2</2> </root>
Required options
These options will be used automatically if you select this example.
Prefix the output with XML meta
Pro tips Master online json tools
You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!
https://onlinejsontools.com/convert-json-to-xml?input=%7B%0A%20%20%22foo%22%3A%20%22bar%22%2C%0A%20%20%22baz%22%3A%20%22baa%22%0A%7D
All json tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Quickly color code the syntax of a JSON file.
Quickly beautify a JSON data structure.
Quickly compress a JSON file.
Quickly check JSON for errors and report them.
Quickly escape special JSON characters.
Quickly unescape an escaped JSON string.
Quickly convert a JSON data structure to an XML file.
Quickly convert an XML file to a JSON data structure.
Quickly convert a JSON data structure to a YAML file.
Quickly convert YAML markup to a JSON data structure.
Quickly convert a JSON file to a TSV file.
Quickly convert TSV data to a JSON file.
Quickly convert a JSON document to a CSV document.
Quickly convert a CSV document to a JSON document.
Quickly convert a JSON structure to binary JSON encoding.
Quickly convert a CSV document to a JSON document.
Quickly convert JSON to a PNG, GIF, JPG or BMP Image.
Quickly encode JSON to base64.
Quickly decode base64 to JSON.
Quickly convert JSON to URL-encoding.
Quickly convert URL-escaped JSON back to JSON.
Quickly convert JSON data to plain text.
Quickly edit a JSON file in a neat JSON editor in your web browser.
Coming soon These json tools are on the way
Display JSON Statistics
Display detailed information about a JSON data structure.
Flatten JSON
Loop over JSON structure and extract all values as a list.
Obfuscate JSON
Obfuscate a JSON data structure.
Stringify JSON
Convert a JavaScript value to a JSON string.
Parse JSON
Convert a JSON string to a JSON object.
Convert JSON to a HTML
Create a HTML table from JSON object keys and values.
Convert JSON to Bencode
Convert a JSON data structure to Bencode encoding.
Convert Bencode to JSON
Convert Bencode data to JSON data.
Convert JSON to BSON
Convert a JSON data structure to binary BSON data.
Convert BSON to JSON
Convert binary JSON data structure (BSON) to JSON.
Convert JSON to a LaTeX Table
Generate a LaTeX table from a JSON object.
Truncate JSON
Loop over JSON structure and truncate all values.
Convert JSON to Data URI
Convert a JSON data structure to a data URL.
Convert JSON to a PHP Array
Create a PHP data structure from a JSON data structure.
Convert a PHP array to JSON
Create a JSON data structure from a PHP data structure.
Compare Two JSON Files
Diff JSON files and show differences visually.