Bidirektional • Lokal im Browser 100% Lokal im Browser

XML zu JSON Konverter online

Wandle XML inklusive Attributen, Namespaces und CDATA fehlerfrei in sauberes JSON oder JSON zurück in XML um.

JSON Ausgabe
{
  "catalog": {
    "@store": "EU-West",
    "product": [
      {
        "@id": "SKU-401",
        "@inStock": true,
        "name": "Wireless Mechanical Keyboard",
        "price": {
          "@currency": "EUR",
          "#text": 119.5
        },
        "tags": {
          "tag": [
            "hardware",
            "bluetooth"
          ]
        }
      },
      {
        "@id": "SKU-402",
        "@inStock": false,
        "name": "USB-C NVMe Enclosure",
        "price": {
          "@currency": "EUR",
          "#text": 34.9
        }
      }
    ]
  }
}
10 elements · 7 attributes · depth 4Weiter mit JSON Formatierer →

Wie XML-Strukturen verlustfrei auf JSON abgebildet werden

Anders als JSON unterscheidet XML zwischen Element-Attributen, Textknoten, Namensräumen und mehrfach auftretenden Kind-Tags. Bei Integrationen zwischen Legacy-ERP-Systemen (SOAP, XRechnung, SEPA, RSS-Feeds) und modernen JavaScript-Frontends sorgt ein klares Mapping dafür, dass keine Metadaten verloren gehen.

XML PatternMapped JSON OutputHinweis
<price currency="EUR">19.99</price>{ "@currency": "EUR", "#text": 19.99 }Präfix @ bewahrt Attribute eindeutig
<tag>a</tag><tag>b</tag>"tag": ["a", "b"]Wiederholte Tags werden zum Array
<empty />"empty": nullLeere Selbstschließer ergeben null

Frequently Asked Questions

Clear, concise answers to common questions about Base64 decoding, encoding, and specifications.

Attribute wie id="104" oder waehrung="EUR" werden standardmäßig mit dem Präfix @ als JSON-Eigenschaften abgebildet (z. B. "@id": 104). Das Präfix lässt sich frei anpassen oder bei Bedarf vollständig ignorieren.