onlinexmltools logo
build

Json to xml converter

World's simplest xml tool

Free online JSON to XML converter. Just paste your JSON in the input form below and it will automatically get converted to XML. There are no ads, popups or nonsense, just an awesome JSON to XML transformer. Load JSON, get XML. Created by developers for developers.
settings
fullscreen fullscreen_exit
swap_horiz
star
Import from file
Save as...
Copy to clipboard
Can't convert.
An error has occured.
Export to Pastebin
Save as...
Copy to clipboard
Indentation
Indents with two spaces
Indents with one tab
Outputs minified result
Converting
Prefix the output with XML meta
help
Json to xml converter tool What is a json to xml converter?
This tool converts JSON (JavaScript Object Notation) documents to Extensible Markup Language (XML) documents. It lets you change XML's indentation and set it to spaces or tabs, and control XML's meta tag. You can also minify the output XML.
books
Json to xml converter examples Click to use
Translate JSON to XML
In this example we convert a JSON document to an XML document.
{"name": "Elon", "age": 45, "companies": ["tesla","spacex"]}<?xml version="1.0" encoding="UTF-8" ?> <root> <name>John</name> <age>30</age> <companies>tesla</companies> <companies>spacex</companies></root>
Transform a JSON array to XML
In this example we convert a JSON array of strings to XML. We also disable XML meta tag.
["foo", "bar", "baz"]<root> <0>foo</0> <1>bar</1> <2>baz</2> </root>
Required options
These options will be used automatically if you select this example.
Prefix the output with XML meta
info
Pro tips Master online xml 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://onlinexmltools.com/convert-json-to-xml?input=%7B%22name%22%3A%20%22Elon%22%2C%20%22age%22%3A%2045%2C%20%22companies%22%3A%20%5B%22tesla%22%2C%22spacex%22%5D%7D
dashboard
All xml tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Quickly beautify an XML data structure.
Quickly compress an XML data structure.
Quickly check XML for errors and report them.
Quickly convert an XML document to a JSON document.
Quickly convert a JSON document to an XML document.
Quickly convert an XML document to a CSV document.
Quickly convert a CSV document to an XML document.
Quickly convert an XML data structure to YAML markup.
Quickly convert a YAML document to XML data.
Quickly convert an XML document to a TSV file.
Quickly convert a TSV document to an XML file.
Quickly convert an XML data structure to Base64 encoding.
Quickly decode a Base64-encoded XML data structure.
Quickly convert an XML file to a plain text document.
airport_shuttle
Coming soon These xml tools are on the way
Syntax Highlight XML
Preview an XML data structure in your browser.
XML Editor
Edit XML documents in your browser.
Display XML Statistics
Display detailed information about an XML data structure.
Compare Two XML Files
Diff XML documents and show file differences visually.