XML-zu-JSON-Konverter
Konvertieren Sie XML-Dokumente in JSON. Attribute werden zu Schlüsseln mit @-Präfix; wiederholte Tags werden zu Arrays.
So verwenden Sie dieses Tool
- 1
Paste or type your XML into the input box.
- 2
Read the converted JSON in the output panel below, which updates as you type.
- 3
If the XML is malformed, fix the error shown in red and the output will reappear.
- 4
Select the JSON from the output panel to copy it into your project.
Was ist der XML-zu-JSON-Konverter?
Der Wechsel von XML zu JSON ist in einigen Aspekten verlustbehaftet: XML unterstützt Namensräume, Verarbeitungsanweisungen und CDATA-Abschnitte, die keine direkten Entsprechungen in JSON haben. Dieser Konverter bewältigt 90 % der Fälle: verschachtelte Elemente, Attribute (mit @-Präfix) und Textinhalt (#text). Für komplexes XML kann eine dedizierte Bibliothek erforderlich sein.
Häufige Anwendungsfälle
Inspect a SOAP or legacy XML API response as JSON before wiring it into a JavaScript front end.
Convert an RSS or Atom feed snippet into JSON to prototype a parser quickly.
Turn a config file or build manifest written in XML into JSON to eyeball its structure.
Pull values out of an XML sitemap or data export when a JSON shape is easier to traverse.
Teach or learn how attributes, repeated tags, and text nodes map between the two formats.
Sanity-check that a small XML payload is well-formed, since malformed input shows a parser error.
Häufig gestellte Fragen
Was ist das @-Präfix?▼
Verwandte Tools
JWT-Decoder
Decodieren Sie JSON Web Tokens (JWT) sofort. Läuft in Ihrem Browser: Die Tokens verlassen niemals Ihr Gerät und können bedenkenlos mit Produktionsgeheimnissen verwendet werden.
JSON-Formatierer und -Validator
Formatieren, validieren und minifizieren Sie JSON online. Läuft vollständig in Ihrem Browser – Ihre Daten verlassen nie Ihr Gerät.
XML-Formatierer
Formatieren und verschönern Sie XML-Dokumente. Nützlich für SOAP, Sitemaps, RSS-Feeds und Konfigurationsdateien.
Base64-Codierer und -Decodierer
Codieren Sie Strings nach Base64 oder decodieren Sie Base64 zu Text. Respektiert Ihre Privatsphäre: läuft in Ihrem Browser.
URL-Codierer und -Decodierer
Wandeln Sie Text in eine URL-sichere Codierung (Prozent-Codierung) und zurück um. Nützlich für Query-Strings, Weiterleitungen und OAuth-Flows.
HTML-Entity-Codierer und -Decodierer
Wandeln Sie Sonderzeichen in HTML-Entities (&, < usw.) und zurück um. Nützlich, um Text sicher in HTML einzubetten.