Input (JSON)
{
"name": "Ada",
"active": true,
"roles": ["admin", "author"]
}The JSON ↔ YAML converter transforms data between JSON and YAML in either direction. Paste JSON to get clean, indented YAML, or paste YAML to get strict JSON — the conversion preserves objects, arrays, strings, numbers, booleans, and null. This is handy when moving configuration between systems, since many tools accept one format but not the other, and YAML is often preferred for human-edited config files.
JSON is a compact, brace-and-bracket data format that is ubiquitous in APIs. YAML (YAML Ain't Markup Language) is a superset of JSON that uses indentation instead of braces, supports comments, and is generally easier for people to read and write. Because every JSON document is also valid YAML, conversion is lossless for the shared data model; the converter simply re-expresses the same structure in the target syntax.
The main file is the entry point for each run.
Use the Input panel to pipe standard input to your program when it needs data.
Run sends your code to a fresh hosted runtime and streams the result into the output panel.
Your draft stays in this browser, and Share creates a separate snapshot link.
{
"name": "Ada",
"active": true,
"roles": ["admin", "author"]
}name: Ada
active: true
roles:
- admin
- authorserver:
host: localhost
port: 8080
tags:
- web
- api{
"server": {
"host": "localhost",
"port": 8080,
"tags": ["web", "api"]
}
}{
"db": {
"name": "app",
"replica": null,
"ports": [5432, 5433]
}
}db:
name: app
replica: null
ports:
- 5432
- 5433users:
- name: Ada
age: 36
- name: Linus
age: 54{
"users": [
{ "name": "Ada", "age": 36 },
{ "name": "Linus", "age": 54 }
]
}{
"title": "Hello: World",
"count": 0,
"enabled": false
}title: "Hello: World"
count: 0
enabled: falseaddress:
city: Paris
zip: "01234"{
"address": {
"city": "Paris",
"zip": "01234"
}
}{
"matrix": [[1, 2], [3, 4]],
"labels": []
}matrix:
- - 1
- 2
- - 3
- 4
labels: []The editor uses Monaco, the engine behind VS Code, with language-aware editing tools and familiar keyboard controls.
Paste JSON to get clean, indented YAML.
Paste YAML to get strict, valid JSON back.
Objects, arrays, strings, numbers, booleans, and null all round-trip faithfully.
JSON braces and brackets become YAML indentation and dashes for sequences.
Since every JSON document is valid YAML, the shared data model converts losslessly.
YAML output favors readable, human-editable indentation over inline braces.
Moving config between tools that accept only one of the two formats.
Producing human-friendly YAML config from API-style JSON.
Conversion runs entirely in your browser in both directions — nothing is uploaded.
Paste real config values safely; they stay on your machine.
Output
YAML output