ConvertAll
Zero Upload

XML to JSON Converter — Instant & Private

Drop an .xml file and get predictable JSON: attributes as @_, text as #text, repeated siblings as arrays — entities and CDATA fully decoded.

100% Local · Zero Upload · Works Offline

Swap: JSON → XML ⇄

Input · XML

Output · JSON

…

TL;DR — Technical Specifications

Input
XML documents — .xml, .txt
Output
JSON — pretty (2/4 spaces) or compact single-line
Max File Size
50 MB
Engine
In-browser XML parser + deterministic JSON mapper
Transparency
N/A — structured data
Metadata
EXIF / GPS stripped automatically on export
Server Upload
0 Bytes — files never leave your device
Offline Support
Yes — works in Airplane Mode
Cost
$0 — Free, unlimited, no watermark

Verify it yourself: the Airplane Mode test

XML to JSON runs entirely on your device. To prove it: load this page once, then enable Airplane Mode (or unplug your network cable) and convert a file — it works identically because conversion happens in a Web Worker using createImageBitmap and OffscreenCanvas. Open DevTools → Network while converting: you will see 0 bytes uploaded. No account, no telemetry on your files, no server in the loop.

How to convert XML to JSON in 3 steps

  1. 1

    Paste or drop XML

    Load an .xml file, drop it on the page, or paste a SOAP response, RSS feed or config snippet.

  2. 2

    Map instantly

    Attributes move to @_* keys, element text to #text, and same-name siblings collapse into arrays — deterministically.

  3. 3

    Copy or download JSON

    Pick 2-space, 4-space or compact output, then copy or download a .json file.

XML vs JSON — Format Technical Comparison

DimensionXMLJSON
PrivacyDocuments uploaded to a serverParsing runs 100% in your browser
AttributesAttributes dropped or mangledPreserved under @_ keys
Repeated tagsLast-sibling-wins overwritesDeterministic arrays
CDATA & entitiesLeft escaped or strippedFully decoded into text
CostUsage caps or sign-up wallsFree, unlimited, no account

Local browser processing vs. cloud-upload converters

DimensionConvertAll (100% local)Cloud-upload converters
Privacy / GDPR exposureFiles never leave the device — no data transfer, no processor agreement needed, zero breach surfaceFiles uploaded to third-party servers; copies may persist in logs, caches, or retention windows
Upload / download wait0 s upload — processing starts instantly on local CPU coresBatch of 20 × 4 MB photos ≈ 13 s upload at 50 Mbps, plus server queue and download time
Batch limitsUnlimited — bounded only by device memoryFree tiers commonly cap at 10–25 files/day or gate bulk jobs behind accounts and paywalls
Offline capabilityFully functional in Airplane Mode once the page is loadedRequires a live internet connection for every file
File securityOriginals stay in browser memory; nothing traverses the network — verifiable in DevToolsFiles transit TLS to remote infrastructure controlled by a third party

Real-world benchmark: 20 × 4 MB photos (80 MB batch)

Measured on a mid-range laptop with a 50 Mbps internet connection — the numbers a cloud converter actually costs you:

DimensionCloud-upload convertersConvertAll (100% local)
Upload + server queue~13 s upload at 50 Mbps + 5–20 s queue0 s — files never touch the network
Processing~2–5 s on shared server workers~1 s per photo on 4 parallel Web Workers
Download results~4 s at 50 MbpsInstant — local Blob download
Total round-trip≈ 20–35 s typicalSeconds — 0 bytes transferred

Cloud estimates cover upload, queueing and download at 50 Mbps. Local timing depends only on your CPU — and works identically offline.

XML to JSON — FAQ & troubleshooting

How are XML attributes represented?

Every attribute becomes a key prefixed with @_ — for example <item id="7"> maps to { "@_id": "7" }, keeping attributes distinct from child elements.

How are repeated elements handled?

Sibling elements sharing a tag name are grouped into a JSON array in document order; unique tags stay as single objects.

What happens to mixed text and elements?

Text content goes under the #text key alongside attributes and child elements, so nothing is silently dropped.

Are entities and CDATA decoded?

Yes — &lt;, &gt;, &amp;, &quot;, &apos; and numeric entities are decoded, and CDATA sections come through as raw text.

Can I convert the JSON back to XML?

Yes — pair it with the JSON to XML tool; @_ keys become attributes again, #text becomes element text, and arrays expand back into repeated tags.