# XML to JSON Guide

Convert XML documents to JSON.

- Tool: https://ilham.dev/tools/xml-to-json/
- Guide URL: https://ilham.dev/guides/xml-to-json/
- Tool guides index: https://ilham.dev/guides/tools/
- Broader guide: Working With Structured Data (https://ilham.dev/guides/working-with-structured-data/)

## What it does

Convert XML to JSON. XML is a document format and JSON is a data format, so the mapping has to make decisions — attributes, text content and repeated elements all need a shape — and the tool states which convention it uses.

## Use the tool

Open https://ilham.dev/tools/xml-to-json/, add the input the tool asks for, run it, and check the output before using it elsewhere.

## Input and output

- Input: text.
- Output: text.
- Category: Formats.

## Privacy and processing
Processing happens locally in your browser. This tool does not upload the input to ilham.dev.

## Questions

### Is the conversion reversible?

Not always, and no converter can promise that. XML can express things JSON cannot, such as mixed text and elements, or the same attribute twice. Check the output before relying on a round trip.