Converter
JSON to YAML Converter
Paste JSON, get YAML. The output is block style with two-space indentation and keys in their original order, so it reads like something a person wrote rather than something a script dumped. Values that YAML would misread as booleans or numbers are quoted, which keeps the round trip exact.
How to convert JSON to YAML
-
1. Put JSON in
From an API response, a package.json, a Terraform plan, a settings export — paste it or drop the file.
-
2. Watch it become YAML
Objects turn into indented blocks, arrays into dash lists. Invalid JSON reports the position rather than producing half a document.
-
3. Copy it into your config
Copy the output or save it as .yaml. Because nothing leaves the browser, a production config is no riskier here than a test one.
Why move JSON into YAML
Config you are meant to read. Kubernetes manifests, docker-compose files, GitHub Actions workflows and Ansible playbooks are all YAML-first. A JSON blob handed to any of them works, but nobody reviewing the pull request will enjoy it.
Fewer braces, more structure. YAML expresses the same tree with indentation instead of braces and quotes, which is why it wins for hand-edited files. This converter keeps that output readable rather than mechanically dumping a single line.
A starting point, not the finish. Once the shape is YAML you can add comments, pull repeated blocks into anchors, and split a long file into documents separated by --- — none of which JSON allows.