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.
Conversion
liveYAML 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.
Paste valid JSON. Keys must be double-quoted and trailing commas are not
allowed.
JSON output
liveCommon causes: bad indentation, tabs used for indentation, unquoted special characters, or a missing bracket or comma.
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.