Zum Inhalt springen
uencoder

Konvertieren JSON to YAML and back without losing data

Translate zwischen JSON und YAML für Konfiguration Dateien, preserving nested Strukturen, Arrays, und scalar Typen across der round-trip.

  1. 1

    YAML is a superset of JSON with indentation-based structure and fewer brackets — preferred for human-edited config. Converting JSON→YAML makes config readable; YAML→JSON makes it machine-parseable. The conversion must preserve types, nesting, and arrays.

  2. 2
    JSON-YAML-Konverter →

    Paste JSON. The tool outputs equivalent YAML with 2-space indentation, block style for maps and sequences, and proper quoting only where needed.

  3. 3

    Use the chain to convert JSON→YAML and immediately validate the YAML parses back to the same structure.

  4. 4

    Umkehren direction: paste YAML, get JSON. Useful when a tool expects JSON input but your source is a YAML config.

  5. 5

    Watch for YAML-specific gotchas: unquoted strings that look like booleans (yes/no/on/off), numbers with leading zeros (interpreted as octal in YAML 1.1), and multi-line string folding. Quote ambiguous scalars to be safe.

Häufige Fragen

Why does my YAML have quotes around some strings but not others?
YAML quotes strings that would otherwise be misinterpreted — e.g. 'true' (would be boolean), '123' (would be number), strings with special characters. The converter adds quotes only where necessary to preserve the JSON type.
Can all JSON be converted to YAML?
Yes — YAML is a superset of JSON, so every valid JSON document is also valid YAML. The reverse is not true: YAML features like anchors, multi-document streams, and tags have no JSON equivalent and may be lost or rejected.

Workflows, die diese Aufgabe lösen

Zwei YAML-Konfigurationen über JSON vergleichen
YAML-Konfigurationen in JSON umwandeln für diff-freundlichen Vergleich strukturierter Werte.
PIPELINE
CSV zu JSON dann YAML umwandeln
Tabellenkalkulations-CSV-Daten über JSON-Zwischenschritt in YAML umwandeln, geeignet für Konfigurationserstellung.
PIPELINE
JSON-Nutzlast für URL-Transport kodieren
Ein JSON-Dokument für URL-Parameter vorbereiten: pretty-print, Base64-kodieren, dann percent-kodieren — die exakte Umkehrung der verschachtelten Parameter-Dekodierungskette.
PIPELINE
ENV zu JSON dann YAML
.env zu JSON dann zu YAML umwandeln für Deployment-Konfigurationen.
PIPELINE
HJSON zu JSON-Format
HJSON formatieren und in Standard-JSON umwandeln.
PIPELINE
INI zu JSON dann YAML
INI zu JSON dann zu YAML umwandeln für modernes Konfigurationsformat.
PIPELINE
JSON formatieren und Integritäts-Prüfsumme berechnen
Ein JSON-Dokument pretty-printen und eine CRC32-Prüfsumme berechnen zur Erkennung nachfolgender Änderungen.
PIPELINE
JSON minifizieren und validieren
JSON für Inspektion formatieren und syntaktische Korrektheit in einem Durchgang validieren.
PIPELINE
JSON formatieren und TypeScript-Interface generieren
Ein JSON-Dokument formatieren dann eine TypeScript-Interface-Definition inferieren in einer Kette.
PIPELINE
Validieren, formatieren, dann JSON zu YAML umwandeln
Eine (möglicherweise minifizierte) JSON-Konfiguration in YAML umwandeln, Syntaxfehler am ersten Knoten abfangen statt subtil falsches YAML zu erzeugen.
PIPELINE
JSON zu YAML dann TOML umwandeln
Eine JSON-Konfiguration über YAML nach TOML migrieren für Rust- oder Python-Projektkonfigurationen.
PIPELINE
JSON5 zu JSON-Format
JSON5 formatieren und in Standard-JSON umwandeln.
PIPELINE
JSONC zu JSON-Format
JSONC (JSON mit Kommentaren) formatieren und in Standard-JSON umwandeln.
PIPELINE
JWT-Payload dekodieren und formatieren
Ein JWT-Token parsen, Payload extrahieren und JSON formatieren für Inspektion.
PIPELINE
Properties zu JSON dann YAML
Java-Properties zu JSON dann zu YAML umwandeln.
PIPELINE
Query-String parsen und JSON formatieren
Query-String in Schlüssel-Wert-Paare parsen dann als JSON formatieren.
PIPELINE
TOML in JSON umwandeln
Eine TOML-Konfigurationsdatei in JSON parsen fuer Tools und APIs, die JSON-Eingabe erwarten.
PIPELINE
TOML zu JSON dann YAML umwandeln
Eine TOML-Konfiguration ueber JSON in YAML umwandeln fuer Kubernetes oder CI-Tooling.
PIPELINE
TOML ueber JSON in YAML umwandeln
Eine TOML-Konfigurationsdatei in YAML-Format umwandeln, mit JSON als Zwischendarstellung.
PIPELINE
Verschachtelten URL-Parameter dekodieren (Base64 JSON)
Einen URL-Parameter, der URL-kodiertes Base64-JSON transportiert, in lesbares formatiertes JSON entfalten.
PIPELINE
YAML in JSON umwandeln
Ein YAML-Dokument in JSON umwandeln und die geparsten Werte auf Typ-Coercion-Ueberraschungen inspizieren.
PIPELINE
YAML zu JSON dann CSV
YAML zu JSON dann zu CSV umwandeln fuer Tabellenkalkulations-Nutzung.
PIPELINE
TypeScript-Interfaces aus YAML generieren
Ein YAML-Dokument in TypeScript-Interface-Definitionen umwandeln, mit JSON als Zwischenformat.
PIPELINE
YAML validieren und formatieren
YAML zu JSON umwandeln zur Strukturvalidierung, dann bestaetigen, dass das JSON well-formed ist.
PIPELINE

Verwandte Tools