YAML ⇄ JSON converter

Convert between YAML and JSON with a documented subset parser — good for config files and manifests.

Direction

Converted in this browser. Nothing is sent anywhere.

A practical YAML subset: block mappings and sequences, `- ` items, flow `[…]`/`{…}`, quoted and plain scalars, `|` and `>` block scalars, comments, one leading `---`. Anchors/aliases, tags, multi-line plain scalars and multi-document files are not supported — the error names the line. Up to 488 KB.

How to use

  1. Paste YAML or JSON.
  2. Convert.
  3. Copy or download the result.

What it supports

Supports indentation-based mappings and sequences, quoted/plain/flow scalars, comments, one leading ---, and block scalars. Anchors, aliases, tags, and multi-document streams are rejected with an error instead of silently misread. Input up to 500 KB.

Related tools

Related guides