XML to JSON Converter
Transform XML data into JSON for use in APIs and web applications.
- XML
- up to 200 MB per file
- Never uploaded
What XML to JSON does
Convert XML into JSON. XML is still what many established systems emit — banking feeds, government data, RSS, older enterprise APIs — while almost everything being built today expects JSON. This handles the translation so you can work with the data in the format your tooling actually speaks.
Worked example
<order id="A-1042">
<customer>Priya</customer>
<item sku="P-7">Pen</item>
<item sku="B-2">Book</item>
</order>{
"order": {
"@attributes": { "id": "A-1042" },
"customer": "Priya",
"item": [
{ "@attributes": { "sku": "P-7" }, "#text": "Pen" },
{ "@attributes": { "sku": "B-2" }, "#text": "Book" }
]
}
}Attributes land under "@attributes", repeated elements become an array, and an element with both attributes and text keeps its text under "#text".
How it works
- 01
Upload XML
Choose the .xml file; it is never uploaded.
- 02
Convert
DocsBolt parses XML into JSON.
- 03
Download
Get a .json file with elements, attributes and text mapped predictably.
Formats and limits
- Accepts
- .xml
- Produces
- JSON
- Files per run
- One
- Size limit
- 200 MB per file
When you'd use it
- A SOAP or RSS feed to consume from a JavaScript app
- Legacy configuration to load into a modern tool
- Sitemap or invoice XML to inspect as JSON
Limitations
- Attributes are kept under an "@attributes" key and mixed content under "#text", so the JSON is faithful but not always the shape an API expects.
- Namespaces are kept as part of the element name (for example "soap:Body").
- Comments and processing instructions are dropped.
Questions
What happens to XML attributes?
They are kept under an "@attributes" key on the element, and an element that has both attributes and text keeps its text under "#text", so nothing in the XML is dropped.
How are repeated elements treated?
Repeated sibling elements become a JSON array, which is the natural equivalent and what any consuming code will expect.
Is the JSON valid for use in code?
Yes, the output is standard JSON that parses in any language. Formatting is readable rather than minified, so it is easy to inspect before use.
What happens to your file
Your file is never uploaded or stored.
Full detail in the Privacy Policy.
Tools people use next
- JSONCSV
JSON to CSV
Array of objects to a spreadsheet-ready CSV.
- JSONPDF
JSON to PDF
Pretty-printed JSON in a monospace PDF.
- CSVEXCEL
CSV to Excel
Open any CSV as a real .xlsx workbook.
- MARKDOWNPDF & WORD
Markdown to PDF & Word
Markdown to PDF or Word — from one live preview.
- HTMLPDF
HTML to PDF
A paginated PDF from an HTML file — links and headings kept.
- HTMLWORD
HTML to Word
HTML tables, lists and headings as a real Word document.
More Data tools
Markdown, HTML, JSON, XML, CSV, plain text and eBook conversions.