Online XML to JSON Converter

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

100% Client-Side Processing — your JSON never leaves this browser. Works offline. How it works

0 lines • 0 bytes Ready
Tip: drop a file anywhere on the editor
Input
Paste, type or drop a file
1
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.

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.