These cookies do not access your files. Your choice does not change which tools you can use, and you can update it anytime under Cookie choices.

Cookie details

Analytics: Google Analytics and Umami count visits and tool use. We save tool search text and may record a sample of browsing sessions with private areas masked.

Ads: Google AdSense displays a footer ad. Google Ads and Reddit measure which ads bring people here.

JSON to XML

Pick file or take photo

More tools

How to prepare XML for an importer

Before converting JSON for another system, compare your field names and hierarchy with a sample XML file that system accepts. Pay attention to the root element and how repeated records need to appear.

Open a small converted file in the receiving application. Well-formed XML can still fail an application's schema, especially when it expects a specific order or element name.

FAQ

Does a browser preview tell me the XML satisfies an import schema?

It shows that the document can be opened. To check a required schema or ordering, validate against that schema or import a sample into the destination.

How do I convert JSON to XML?

Choose the JSON file and press Convert to XML. Each key becomes an element inside a root element.

How are lists written?

Each item repeats the element named after its key. A list at the top level becomes item elements inside root.

What if a key is not a valid XML name?

Characters XML does not allow are replaced with an underscore, and a name that starts with a digit gets an underscore in front.

Does it write attributes?

No. Every value is written as an element.

It says the JSON could not be read. Why?

The file is not valid JSON. Common causes are a trailing comma, single quotes, or a missing bracket.

Is my file uploaded?

No. The file is converted inside your browser and never sent to a server. It is free.

Sign in

Use Google, Apple, or email. No account is needed to download. Sign in for the larger phone limit and saved favorite tools.