Free JSON to XML
Convert JSON into well-formed XML. Lists become repeated elements, and keys starting with @ become attributes.
Runs on your device
What to do next
How to use JSON to XML
- 1
Paste JSON or drop a .json file.
- 2
The XML appears as you type; set the indent or sort the keys if you like.
- 3
Copy the XML or download it as a file.
JSON to XML converts JSON into well-formed XML for older systems, SOAP services, feeds and enterprise tools that expect XML. Lists become repeated elements, and keys starting with @ become attributes.
XML needs exactly one top element, so FileConvertora adds a <root> wrapper when the JSON has several top-level keys, and tells you when it does.
Attributes and text
Write { "book": { "@id": "7", "#text": "FileConvertora" } } to get <book id="7">FileConvertora</book>. Keys that aren’t valid XML names, such as ones starting with a digit, are adjusted.
Lists
"tags": ["a", "b"] becomes <tags>a</tags><tags>b</tags>. A list at the very top becomes <root> with one <item> per entry.
| Format | Looks like | Used for | Notes |
|---|---|---|---|
| JSON | Braces and quotes | APIs, web apps, config | Strict: no comments |
| XML | Tags | Older APIs, feeds, Office files, Android | Verbose, supports attributes |
- Move data from a JSON source into a tool that expects XML.
- Check how JSON data looks in XML before using it in a config or an import.
- The file is opened and processed by your browser on your own device. It is never uploaded, so no server, including ours, ever receives a copy.
- Your data is parsed and written in your browser, which matters for API keys, tokens and customer data.
- It says the input is invalid
- The error shows the line. Common causes: tabs in YAML, a trailing comma in JSON, an unclosed tag in XML.
- Nested data looks flat
- CSV can’t hold nested objects; nested values are joined into column names like address.city.
Questions
How are lists converted?
Each item becomes its own element with the list’s name, e.g. "tags": ["a","b"] becomes <tags>a</tags><tags>b</tags>.
How do I make an XML attribute?
Start the key with @: { "book": { "@id": "7", "title": "…" } } gives <book id="7">.
Is my data uploaded?
No. Everything is converted in your browser, so private config files and data stay on your device.
Something not working, or a question that isn’t here? Tell us about it
Popular conversions
More file tools
See all 28- Share FilesNewSend files by link, no upload
- Zip FilesBundle any files into one archive
- Unzip FilesNewOpen ZIP files and save what’s inside
- Compare TextNewFind the differences between two texts
- QR Code GeneratorNewLinks, Wi-Fi, contacts and more
- Wi-Fi QR CodeNewA sign guests scan to connect
- Excel to CSVNewSave a spreadsheet sheet as CSV
- CSV to ExcelTurn a CSV file into an .xlsx workbook