Skip to content
Free Tool Arena

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

  1. Paste XML into the input.
  2. Pick how attributes are represented (e.g. @attr prefix).
  3. Click Convert — errors show the exact XML issue.
  4. Copy the JSON output or download as a file.