RevealTheme logo

JSON-zu-YAML-Konverter

Konvertieren Sie JSON in YAML. Entfernt geschweifte Klammern, Anführungszeichen und Kommas für übersichtlichere Konfigurationsdateien.

So verwenden Sie dieses Tool

  1. 1

    Paste or type your JSON into the text box.

  2. 2

    The converter parses it with JSON.parse and renders YAML below as you type.

  3. 3

    If the JSON is malformed, a red parser error appears instead of output — fix the JSON and the YAML updates.

  4. 4

    Select the YAML in the output block and copy it into your config file.

Was ist der JSON-zu-YAML-Konverter?

YAML ist syntaktisch eine Obermenge von JSON: Jede JSON-Datei ist gültiges YAML, aber das Umgekehrte gilt nicht. Die Konvertierung von JSON nach YAML ist vor allem ästhetisch: geschweifte Klammern durch Einrückung ersetzen, Anführungszeichen von einfachen Schlüsseln entfernen und Kommas durch Zeilenumbrüche ersetzen. Nützlich, um API-Antworten in von Menschen bearbeitbare Konfigurationsdateien zu übersetzen.

Häufige Anwendungsfälle

  • Turning a JSON API response into a YAML snippet you can paste into a Kubernetes or Docker Compose file.

  • Rewriting a package.json fragment or settings blob as YAML to read it more easily during review.

  • Drafting a GitHub Actions or GitLab CI workflow when you have the config as JSON but the pipeline expects YAML.

  • Converting a JSON fixture into YAML for an Ansible playbook or a Helm values file.

  • Quickly checking how a nested JSON structure looks once the braces and commas are stripped away.

  • Producing readable YAML examples for documentation from JSON you already have.

Häufig gestellte Fragen

Lässt sich das YAML wieder in identisches JSON zurückkonvertieren?▼
Bei einfachen Daten ja. Zeichenketten, die Sonderzeichen enthalten, werden in Anführungszeichen gesetzt, um sie zu erhalten.

Verwandte Tools