YAML ⇄ JSON
Convert YAML documents to JSON and JSON to YAML with proper indentation, quoting and type preservation. Annotated errors point at the offending line, and nested structures convert faithfully. Local only.
Paste YAML to get JSON (or vice versa). Indentation matters in YAML, so invalid documents are reported with the line number. JSON keys, arrays and scalars map 1:1.
JSON input
Frequently asked questions
Why is YAML indentation so important?
YAML uses indentation (not braces) to express nesting. A single misaligned space can change meaning or cause a parse error.
How are numbers preserved?
Integers, floats, booleans and null stay typed through conversion; strings are quoted where needed to keep types stable in JSON.