JSON zu XML Konverter

Serialisiere JSON zu wohlgeformtem XML — @_Attribute, wiederholte Elemente, Textknoten.

JSON-Eingabe

Knotendetails

Knoten auswählen, um Details anzuzeigen

Hauptfunktionen

Attribute Mapping

Keys starting with the configurable @_ prefix become real XML attributes on their parent element.

Array Unwrapping

Array values emit repeated sibling elements with the same tag — matching xmlToJson exactly for round-trips.

Safe Tag Names

Illegal characters and leading digits in key names are sanitized into valid XML names automatically.

Declaration & Pretty

Toggle the <?xml?> prolog and pretty indentation; single-key roots unwrap to avoid a redundant wrapper.

So verwenden Sie JSON zu XML Konverter

1

Paste JSON

Insert any JSON object — including output from our XML to JSON converter for a perfect round-trip.

2

Configure Output

Set the root tag, attribute prefix, declaration and pretty-print toggles.

3

Copy or Download

Copy the XML or save it as data.xml for your integration.

Technischer Architektur- & Datenschutz-Vergleich

Wie sich formatjson.net von herkömmlichen serverbasierten JSON-Tools unterscheidet

100% Lokale Browser-Ausführung Kein Server-Upload RFC 8259 & RFC 4180 Konform 64-Bit-Integer Sicher JSON Schema 2020-12 Offline-fähige PWA
Funktion / Standard formatjson.net (100% Client-Side Workbench) Klassische Server-basierte Tools
Datenverarbeitung & Datenschutz 100% lokal im Browser per JavaScript — Daten verlassen niemals Ihr Gerät Laden JSON/XML/CSV häufig auf externe Server hoch
API-Schlüssel, JWTs & Vertrauliche Daten Sicher durch Design — keine Netzwerkübertragung, funktioniert offline per Service Worker Risiko von Server-Logs oder Drittanbieter-Speicherung
Reparatur defekter & abgeschnittener LLM-JSONs 1-Klick-Zustandsautomat repariert Kommentare, einfache Anführungszeichen, Trailing Commas & offene Klammern Bricht bei nicht-striktem JSON mit Syntaxfehler ab
64-Bit Snowflake-IDs & Führende Nullen Bewahrt große Ganzzahlen (> 2^53 - 1) und Codes wie "00123" ohne Präzisionsverlust Schneidet 64-Bit-IDs ab oder entfernt führende Nullen
Verschachtelte Arrays als Tabelle Interaktiver Drill-down ([n items] →) mit Breadcrumbs, Spaltensortierung & Inline-Bearbeitung Nur flache Root-Tabellen oder schreibgeschützte Bäume
Performance bei großen Dateien Chunked Lazy-Tree (200 Knoten/Batch) + paginierte Tabelle + 150-KB-Highlight-Schutz Browser-Freeze bei mehreren Megabyte großen Dateien

Häufig gestellte Fragen

How are XML attributes represented? ▾

Prefix the key with @_ (configurable): {"book": {"@_id": 1}} becomes <book id="1">.

How do arrays map to XML? ▾

Each element becomes a repeated sibling tag: {"book": [{...},{...}]} emits two <book> elements.

What about #text nodes? ▾

A #text key becomes the element text content, so xmlToJson output converts back losslessly.

Are tag names sanitized? ▾

Yes — spaces and illegal characters become underscores and leading digits/dashes get a safe _ prefix.

Does it escape XML entities? ▾

Attribute values escape & < > " and text nodes escape & < > correctly.