XML to JSON converter

Turn an XML file into JSON. It is read in your browser, so invoices and business data are never uploaded.

Drop XML files hereChoose XML filesor click to choose from your deviceTap here to pick a file from your phone

How to convert XML to JSON

  1. Drop your XML files into the box above.
  2. Choose Convert to JSON.
  3. Download the result.

About this conversion

XML is still used for invoices, product feeds, sitemaps and exports from accounting systems, such as the electronic invoice files used in Brazil. JSON is easier to use in apps and scripts. This converter keeps the structure of your file: attributes go under an @attributes key, repeated tags become a list, and text next to attributes is saved as #text. Everything runs on your device, which matters for financial files.

XML to JSON questions

Can I convert invoice XML files like NF-e?

Yes, any well-formed XML file works. The tags are kept as they are, so the JSON follows the structure of the original file.

What happens to XML attributes?

They are saved under an @attributes key inside the element they belong to.

Is my XML file uploaded anywhere?

No. The conversion runs in your browser, on your device. Your files are never sent to a server.

Is there a file size limit?

There is no fixed limit from us, because nothing is uploaded. Very large files depend on the memory of your device.

Can I convert several files at once?

Yes. Drop several files together. If there is more than one result, you can download them all as a ZIP.

Do I need to sign up or install anything?

No. There is no account, no app and no watermark. Open the page and convert.

What is a XML file?

XML is a tag-based text format used by older systems, feeds and many business exports.

What is a JSON file?

JSON is the standard text format for data in apps and APIs.

Does converting XML to JSON change the quality?

Your values are copied as they are. Only the format changes. Attributes are saved under an @attributes key, and repeated tags become a list.

Does ShiftDeck keep a copy of my XML file?

No. The file only exists in your browser tab. When you close or refresh the page it is gone, because ShiftDeck never receives it.

Does XML to JSON work on iPhone and Android?

Yes. It works in current mobile browsers such as Safari and Chrome. Tap the box, choose the file from your phone and save the result.

Can I convert JSON back to XML?

Yes. Use the JSON to XML converter on ShiftDeck. Converting back does not restore detail that was lost in the first conversion.

How much does XML to JSON cost?

It is free. There is no account, no watermark and no daily limit.

Related converters