# XML to JSON

Convert XML documents to JSON.

## URL

https://ilham.dev/tools/xml-to-json/

## 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.

## Features

- Runs in the browser
- No login required

## Input

text input.

## Output

text output.

## Privacy

Processing happens locally in the browser.

No input data is uploaded to ilham.dev.

- Requires login: false
- Requires API key: false
- Stores user data: false


## Examples

- Is the conversion reversible?




## Questions

### Is the conversion reversible?

Not always. XML can mix text with child elements; this converter does not preserve all mixed content. It also turns repeated sibling tags into arrays. Check the result against the original if you plan to convert it back.

