Convert XML, RSS & SVG to JSON

Batch + ZIP

Convert XML documents, RSS feeds, and SVG trees into clean JSON objects—preserving attributes, CDATA, and typed numbers locally.

100% Client-Side — Verify 0 bytes uploaded in Network tabVerify 0 bytes sent in Network tab

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

Before (Input)catalog.xml
<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>
After (Output).json
{
  "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

PropertySource: XMLTarget: JSON
Structure typeHierarchicalHierarchical
Human readabilityMediumHigh
Nesting supportYesYes
LLM token efficiencyLowLow
File extension.xml.json
MIME typeapplication/xmlapplication/json
Best forSOAP 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.

  1. Drop XML, RSS, or SVGLoad any .xml, .rss, or .svg file or paste XML markup into the input editor.
  2. Configure attributesKeep @_ attribute prefixes (or ignore attributes altogether) and choose whether numeric text tags parse as JSON numbers.
  3. 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.