ITpris Verktyg

File Converter · free, in your browser

Convert XML to JSON

Turn an XML feed, export or config file into JSON you can read in code. The structure is kept: every element, its attributes, its text and its children.

Convert XML to JSON

How to do it

  1. Drop the .xml file on the page.
  2. XML to JSON is chosen for you. Choose Convert.
  3. Download the .json file, indented for reading.

Your files stay on this device: File Converter runs in your browser, with no upload, no account and no watermark.

Questions

What does the JSON look like?

Each element is an object such as { "name": "item", "attributes": { "id": "1" }, "text": "…", "children": [ … ] }, so nothing in the XML is lost.

What if my XML is broken?

The converter says the XML could not be read and asks you to check it is well formed, instead of writing a half-finished file.

Is the file uploaded?

No. The XML is parsed by your browser and the JSON is written on your device.

More with File Converter

  • Page Layout
    Beta
    Lay out pages for print with master pages and text frames.
  • Compare
    Beta
    Compare two texts, files, PDFs or pictures and see every change. Nothing uploaded.
  • Code Editor
    Preview
    A code editor for your Files files. Nothing uploaded.