Convert XML, RSS & SVG to JSON
Batch + ZIPConvert XML documents, RSS feeds, and SVG trees into clean JSON objects—preserving attributes, CDATA, and typed numbers locally.
or drop files here · Ctrl V to paste · or drop .xml, .rss, or .svg files · Ctrl V to paste
- 100% browser-local
- 0 bytes uploaded
- Preserves attributes & CDATA
Instant Before & After Preview
<catalog currency="USD">
<book id="bk101">
<title>Browser Engineering</title>
<price>39.00</price>
</book>
<book id="bk102">
<title>Local Data Craft</title>
<price>29.50</price>
</book>
</catalog>{
"catalog": {
"@_currency": "USD",
"book": [
{
"@_id": "bk101",
"title": "Browser Engineering",
"price": 39
},
{
"@_id": "bk102",
"title": "Local Data Craft",
"price": 29.5
}
]
}
}Source vs. target format specification comparison: XML → JSON
| Property | Source: XML | Target: JSON |
|---|---|---|
| Structure type | Hierarchical | Hierarchical |
| Human readability | Medium | High |
| Nesting support | Yes | Yes |
| LLM token efficiency | Low | Low |
| File extension | .xml | .json |
| MIME type | application/xml | application/json |
| Best for | SOAP payloads, RSS/Atom feeds, sitemaps, SVG graphics, and OOXML/EPUB document internals. | REST/GraphQL APIs, structured application state, NoSQL documents, and machine-to-machine data exchange. |
How it works
How to convert XML to JSON in browser memory
Turn legacy SOAP responses, XML sitemaps, or RSS feeds into structured JSON with zero backend uploads.
- Drop XML, RSS, or SVGLoad any .xml, .rss, or .svg file or paste XML markup into the input editor.
- Configure attributesKeep @_ attribute prefixes (or ignore attributes altogether) and choose whether numeric text tags parse as JSON numbers.
- Export or flatten to CSVDownload formatted JSON or hand off immediately to JSON to CSV or JSON to TypeScript.
FAQ
Frequently asked questions
How are XML attributes like <book id="bk101"> mapped into JSON?
By default, XML attributes appear under the configurable @_ prefix (such as "@_id": "bk101") so they never collide with child elements.
Can I turn off number coercion for postal codes or XML IDs?
Yes. Uncheck Parse Tag Values to keep every XML leaf value as an exact string.
Does XML to JSON handle RSS feeds and SVG vector files?
Yes. Any well-formed XML document including RSS 2.0, Atom feeds, sitemaps, and SVGs parses cleanly.