YAML ⇄ JSON Converter

Convert YAML to JSON or JSON to YAML, entirely in your browser.

How to use this tool

Choose a direction, paste your data on the left, and the converted result appears instantly on the right.

About this tool — supported YAML subset

Supports the commonly-used subset of YAML: block and flow-style mappings and sequences (including nested and sequences-of-mappings), plain/single/double-quoted strings, numbers, true/false, null, and # comments.

Not supported (by design): anchors/aliases (&x, *x), multi-document streams (---), block scalars (| and >), and explicit tags (!!type). These are less common in typical config files and JSON-interop use cases this tool targets.

The parser was cross-checked against Python's PyYAML on a range of test cases (nested mappings, sequences of mappings, flow style, quoted/numeric/boolean/null values, Unicode, comments) before publishing. 100% client-side.

Frequently asked questions

Does this support the full YAML specification?

No — this covers the commonly-used subset: block and flow mappings/sequences, plain/quoted scalars, numbers, true/false, null, and comments. It does not support anchors/aliases (&x, *x), multi-document streams (---), block scalars (| and >), or explicit tags (!!type). This is disclosed clearly so you know when to reach for a full YAML library instead.

Are "yes" and "no" treated as booleans?

No — only true/false (in any case) are treated as booleans, matching the current YAML 1.2 specification. Some older tools (following the outdated YAML 1.1 behavior) also treat yes/no/on/off as booleans, which this tool intentionally does not do, to avoid silently corrupting a literal string like a country code "NO" (Norway).