Developer Utilities · Free tool
XML to JSON Converter
Convert XML documents to JSON in your browser. Preserves attributes and nested elements. No upload — runs locally.
Updated April 2026
What it does
Paste any well-formed XML and get a JSON representation that preserves attributes, namespaces, and the nesting structure. Works for RSS feeds, SOAP payloads, sitemaps, Android layouts, and anything you'd rather read as JSON.
Going the other direction? Use JSON to XML. Format either side with JSON formatter or XML formatter. For YAML ↔ JSON, see YAML JSON converter.
How to use it
- Paste XML into the input.
- Pick how attributes are represented (e.g. @attr prefix).
- Click Convert — errors show the exact XML issue.
- Copy the JSON output or download as a file.