Online XML to JSON Converter

Transform XML markup, RSS feeds, and SOAP payloads into clean JSON objects in your browser.

Runs locally 0 lines • 0 bytes Ready
Tip: drop a file anywhere on the page
Input
Paste, type or drop a file
Result
Updates as you type
// Output will appear here…
About this tool

How the XML to JSON works

Convert XML documents, SOAP responses, and RSS feeds into structured JSON objects. Fast in-browser DOM parsing with attribute support.

How to use the XML to JSON

  1. Paste XML, an RSS feed or a SOAP response.
  2. Choose whether to keep attributes and convert numbers.
  3. Copy the resulting JSON.

XML to JSON example

Input
<user><name>Ali</name><city>Pune</city></user>
Result
{
  "user": {
    "name": "Ali",
    "city": "Pune"
  }
}

When to use it

  • Using data from legacy SOAP or XML APIs in modern JavaScript apps.
  • Reading RSS and Atom feeds.
  • Migrating XML configuration to JSON.

Tip: Repeated elements with the same name become a JSON array, which is how lists in XML are usually meant.

Native Browser DOM Parser

Uses the browser's built-in XML DOM parser for fast, standards-compliant parsing.

Attribute & Text Extraction

Extracts both XML element tags and element attributes into organized JSON properties.

Repeated Elements to Arrays

Automatically groups repeated XML sibling tags into JSON arrays.

Zero Data Leakage

Executes 100% on your device with no server calls.

FAQ

Common questions

How are XML attributes represented in JSON?

XML attributes are stored with an @ prefix (e.g., "@id": "123") to differentiate them from child elements.

How are repeated sibling tags converted?

When multiple sibling tags share the same name (like multiple <item> tags), they are aggregated into a JSON array.

Can this convert RSS and Atom feeds?

Yes! Paste any valid RSS or Atom XML feed to get a clean JSON representation.

Does this tool validate XML syntax?

Yes, any malformed XML syntax errors will be reported with clear error details.