JSON to YAML Converter
Convert JSON to human-readable YAML and YAML back to JSON in your browser. Real ...Convert JSON to human-readable YAML and YAML back to JSON in your browser. Real types for numbers, booleans, and null, with a direction toggle and ins...
Updated
JSON Input
YAML Output
JSON and YAML at a glance
name: Adaskills:
- go
- rustaddress:
city: Londonactive: true, age: 30, x: nullQuick answer
To convert JSON to YAML, paste your JSON into the input box and the tool parses it in your browser and shows clean YAML instantly. It uses the js-yaml library, so numbers, booleans, null, nested objects, and arrays all convert to correct YAML types rather than quoted strings. Switch the direction toggle to turn YAML back into JSON, and choose 2 or 4 space indentation before you copy or download the result.
Converter Features
Why Use JSON to YAML Converter?
Human-Readable YAML
YAML drops the braces and quotes JSON needs, so the output is easier to read, edit, and comment.
Two-Way Conversion
Go JSON to YAML or YAML to JSON with one toggle. The output updates live as you type.
Real YAML Types
Numbers, booleans, and null convert to real YAML values, not quoted strings, powered by js-yaml.
100% Private
Every conversion runs in your browser. Your config never leaves your device or hits a server.
Common Use Cases for JSON and YAML
Docker Compose
Turn JSON config into a readable docker-compose.yml, or parse a compose file back into JSON.
Kubernetes
Generate K8s manifests in YAML from JSON data, or convert manifests back to JSON for API calls.
CI/CD Workflows
Build GitHub Actions and pipeline YAML from JSON, or parse workflow YAML into JSON for analysis.
App Configuration
Move config between JSON and YAML when a tool or API expects one format over the other.
How It Works
Paste Your JSON or YAML
Drop your JSON into the input box, or load the sample to see how the converter works.
Set Direction and Indent
Choose JSON to YAML or YAML to JSON, then pick 2 or 4 space indentation for the output.
Copy or Download
The output updates instantly. Copy it to your clipboard or download a .yaml or .json file.
Tips for JSON to YAML Conversion
Use 2 Spaces for Docker and K8s
Most Docker Compose and Kubernetes files use 2 space indentation. Match your project convention so the YAML drops straight in.
Round-Trip With Swap
Use the Swap sides button to feed the output back as input, so you can convert JSON to YAML and straight back to JSON.
Quote Ambiguous Values
If a string like a version number or a leading-zero ID must stay text, keep it quoted in your JSON so YAML does not read it as a number.