# XML to JSON Converter — Convert XML Locally

> Convert XML to JSON or JSON to XML locally in your browser, with attributes, text nodes, and repeated elements preserved.

Source: https://toolpantry.app/xml-json-converter

## About

Convert API payloads and feed data locally, keeping XML attributes and repeated child elements visible in the JSON output.

## Quick answer

**How do I convert XML to JSON?** Paste XML or JSON to convert between the formats while keeping attributes visible.

## How to convert XML to JSON (or back)

1. **Paste the XML or JSON** — the converter detects the direction.
2. **Convert** — attributes, text, and repeated elements map with a clear convention.
3. **Eyeball the tricky parts** — nested repeats and namespaced attributes deserve a second look.

## Where this conversion earns its keep

- Modernising an old SOAP or RSS integration into a JSON pipeline
- Inspecting feed data as plain JSON
- Turning XML config exports into something your scripts prefer

## Good to know

Mapping conventions matter more than raw conversion: attributes get a reserved prefix and mixed text becomes a node value, so check how your downstream code expects those to look. Namespaces and type inference are not guessed — for critical integrations, validate the converted payload against the receiving schema. Everything runs locally, which matters when documents contain credentials. Related: [XML formatter](https://toolpantry.app/xml-formatter) and [JSON formatter](https://toolpantry.app/json-formatter).

## Notes

XML attributes are stored under @attributes, text under #text, and repeated elements become arrays. Review the mapping for your API's schema.

## FAQ

**Does this upload XML?**

No. Parsing and conversion happen in the browser, so the document stays on your device.

**Can it convert every XML schema?**

It handles well-formed XML and common attributes, text, and repeated elements. Namespaces and schema-specific typing may need manual review.
