XML to JSON
Convert XML documents, feeds and SOAP responses to JSON. Attributes are kept with an @_ prefix.
Runs in your browser. Nothing is uploaded Free, no sign-up Works on mobile
Indent
How to convert XML to JSON
- Paste your XML or open a file.
- Adjust the options if needed.
- Copy the JSON or download it as a file.
Frequently asked questions
Are XML attributes kept?
Yes. They appear as keys starting with @_, alongside the element’s child values.
Is my data sent to a server?
No. Everything runs in your browser, so API keys, tokens, configs and customer data never leave your machine.
Related tools
All Developer Tools →- JSON to XML Convert JSON objects to well-formed XML.
- JSON Formatter Pretty-print messy JSON, find syntax errors fast, or minify it for production.
- TOML to JSON Convert TOML files such as Cargo.toml, pyproject.toml and Hugo configs to JSON.
- JSON to TOML Convert a JSON object to TOML for Rust, Python and static-site generator configs.
- Base64 Encode / Decode Convert text to and from Base64, the encoding used in data URIs, emails, JWTs and basic authentication headers.
- URL Encode / Decode Make text safe for URLs and query strings, or read encoded URLs from logs and analytics.