XML to JSON Converter
Working with an API that returns XML when you need JSON? Paste the XML here and get well-structured JSON output with sensible attribute handling, proper array detection, and configurable formatting. Everything runs locally in your browser.
XML to JSON Converter
How to Use This Tool
- Paste your XML content into the input editor.
- Configure attribute prefix and array handling options.
- Preview the generated JSON output.
- Copy or download the JSON result.
Features
- Handles deeply nested XML structures
- Configurable attribute-to-property mapping (@attr or $attr)
- Automatic array detection for repeated elements
- CDATA section handling
- Formatted and minified output options