123024.com · YAML ↔ JSON
YAML ↔ JSON
YAML and JSON are the two most common structured config formats. This tool converts between them in the browser: paste JSON to get YAML, or paste YAML to get JSON. After you stop typing, it detects the format and converts automatically.
How to use
Paste JSON or YAML into the input. After you stop typing, the tool detects the format and converts automatically — no Convert button needed. A short hint under the output shows which direction ran (JSON → YAML or YAML → JSON).
Tips
- Auto-detect: a value that starts with { or [ and parses as strict JSON becomes YAML; everything else is treated as YAML and converted to JSON.
- While you are still typing incomplete JSON/YAML, conversion may fail until the document is valid — finish the structure, then pause briefly.
- Anchors (&name), aliases (*name), and merge keys (<<:) work when converting YAML → JSON; define &name before using *name.
- Configs with secrets should stay in a local tool, not on sites that upload content.