Data Convert@_ AttributesStrict Schema

Convert XML, SVG & RSS to JSON

Safely transform enterprise XML feeds, RSS streams, and SVG trees into typed JSON in browser RAM — immune to server-side XXE vulnerabilities.

100% Browser-Local — Verify 0 bytes uploaded in Network tabVerify 0 bytes sent in Network tabUpdated: 2026-11-24
  • 0 bytes uploaded
  • Preserves XML attributes
  • Safe pure-JS parser (no XXE)

Select XML / SVG / RSS

preserves @_ attributes · safe browser worker · zero XXE.xml · .svg · .rss

Zero upload limits · Runs in browser RAM

Benchmark & Expected Output

Preserves XML @_ attributes

Before (Input)
<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)
{
  "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
PropertySource: XMLTarget: JSON
File extension.xml.json
MIME typeapplication/xmlapplication/json
Structure typeHierarchicalHierarchical
EncodingUTF-8 TextUTF-8 Text
Nesting supportYesYes
LLM token efficiencyLowLow
Schema / typedYesNo
Best forEnterprise SOAP/banking feeds, RSS/Atom, SVG graphics, Maven pom.xml, Android manifests, and document schemas.REST/GraphQL API payloads, nested web state, structured AI outputs, and universal cross-language interchange.
How it works

How to use XML to JSON locally in your browser

Parse XML 1.0 documents with configurable @_ attribute preservation and typed primitives via pure-JS fast-xml-parser.

01

Paste or drop XML

Load .xml, .svg, or .rss markup directly into browser memory.

02

Set attribute mapping

Toggle Preserve XML attributes, customize the @_ prefix, and pick JSON indentation.

03

Export typed JSON

Download clean JSON or round-trip back to XML anytime.

Next step

Continue your data pipeline

Related tools

Related data & AI tools

Format specs

Formats · Guides · Compare

FAQ

Frequently asked questions

How are XML element attributes saved in JSON?

Attributes prefix cleanly (default @_, e.g., @_currency) so you can distinguish attributes from child tags and round-trip to XML.

Does XML to JSON coerce numbers and booleans inside tags?

Yes. Numeric and boolean text nodes parse cleanly into native JSON types.

Is parsing untrusted XML safe in the browser?

Yes. fast-xml-parser runs in a sandboxed Web Worker without filesystem or external entity fetching.