Home / Data tools / JSON to XML online (files)

JSON to XML Online

Open a JSON file, check that it is valid, and download the XML. The file stays on your device.

Convert a file in three steps

  1. Choose a .json file, or drag it onto the box. You can also paste JSON into the editor.
  2. Check the validity message under the editor. If the JSON has a problem, it explains what went wrong.
  3. Press Download XML to save the result with the same file name and an .xml extension.

Your file stays private

The file is read and converted inside your browser. It is not sent to a server, which makes this suitable for configuration files and data you would rather not upload. Very large files depend on your device memory.

Examples to try

Use the example buttons to load a simple object, a list of records, or a document with attributes and text, and see how each converts. The records example is a good model for an export, such as a list of products.

Fixing invalid JSON

  • Remove trailing commas after the last item.
  • Use double quotes for keys and text, not single quotes.
  • Quote every key.
  • Remove comments, which JSON does not allow.

Need more control over arrays, attributes or the root element? Use the full JSON to XML converter. For tidy, indented output, see pretty print. To go the other way, use XML to JSON.

Frequently asked questions

Is my JSON file uploaded?

No. The file is read and converted in your browser.

What file types can I open?

JSON files with the .json extension, and plain text files that contain JSON.

What is the downloaded file called?

The same name as your JSON file, with an .xml extension.

Can I convert several files?

Convert them one at a time. Each file downloads separately.