Answer

How to convert JSON to YAML

Convert JSON to clean, valid YAML instantly in your browser. Free, private, no uploads.

JSON and YAML describe the same data model, so conversion is lossless. Paste your JSON into a JSON-to-YAML converter and it returns the YAML equivalent, turning object keys into indented mappings and arrays into dash-prefixed lists.

Input
{ "name": "app", "port": 8080, "debug": true }
Output
name: app
port: 8080
debug: true

YAML uses indentation instead of braces and drops the quotes around simple values.

Open the YAML to JSON → Free · runs in your browser · nothing uploaded

Steps

  1. Open the YAML ⇄ JSON tool and set the direction to JSON → YAML.
  2. Paste your JSON into the input box.
  3. Read the YAML output and copy it.
  4. Use the reverse direction (YAML → JSON) whenever you need to go the other way.

Frequently asked questions

Is converting JSON to YAML lossless?
Yes — JSON is essentially a subset of YAML, so every JSON document has an exact YAML equivalent. Converting back and forth preserves the data, though comments (which JSON lacks) cannot be added automatically.