What is the JSON to YAML Converter?
YAML is a friendly way to write the same data as JSON, with indents instead of braces. It is used in Docker Compose, Kubernetes, GitHub Actions and many config files.
Paste your JSON and get YAML at once. Strings that could be confused with numbers or true/false are quoted, so the meaning never changes. Comments and trailing commas in your JSON are accepted too.
How to use it
- Paste your JSON in the left box.
- Choose 2 or 4 spaces and other options.
- Copy the YAML or save it as a file.
Why people like this tool
Safe quoting
Quotes only where the meaning needs them.
Multi-line text
Long text uses the | block style.
Document splits
Turn a list into many YAML documents.
Lenient JSON
Comments and trailing commas are fine.