How do I convert XML to JSON?
Paste your XML above. The JSON appears on the right as you type.
Developer Tools
Convert XML to JSON, keeping attributes and repeated tags as arrays.
Attributes
Converted in your browser. Nothing is uploaded.
Paste XML or open an .xml file.
Show attributes as @id, _id or plain id.
Copy the result or download a .json file.
Paste your XML above. The JSON appears on the right as you type.
They become keys with your chosen prefix, like "@id": "b1".
When a tag appears more than once in the same place, the values are grouped into an array.
No. The conversion runs in your browser.
JPG, PNG, and WebP all store images, but picking the wrong one gives you blurry photos, huge files, or lost transparency. Here is exactly when to use each, in plain English.
Read guide →A large PDF is a pain to email or upload, but most compressors either barely shrink it or turn your crisp text into a blurry mess. Here is how to reduce PDF file size while keeping it looking clean.
Read guide →Combining several PDFs into one file used to mean paid software or uploading private documents to a stranger server. Here is the faster, safer way to merge PDF files for free.
Read guide →