Structured Data

YAML / JSON Converter

Convert between YAML and JSON in both directions. Paste your input, pick a direction, and get valid output with instant error locations — all in your browser, with nothing uploaded.

Runs in your browser v1.0.0

Conversion

live
Direction

YAML input

source

Parsed in this tab. YAML values like 1.0, true or null keep their type; quote them if you need an exact string.

JSON output

live


                

How it works

YAML → JSON is parsed in this tab with the site’s own dependency-free YAML core parser, then re-serialised with JSON.stringify. It handles block and flow mappings and sequences, typed scalars, quoted strings, block scalars, anchors, aliases, merge keys and multiple documents; multiple documents become a JSON array. JSON → YAML uses the browser’s own JSON.parse and emits clean two-space YAML. Unknown YAML tags are ignored with a warning and are never executed. Everything runs locally, so your data never leaves the page.