JSON to YAML

JSON ↔ YAML, both ways.

YML JSON to YAML Interactive Tool
Input
Output

Convert between JSON and YAML in both directions, entirely in your browser:

  • To YAML - paste JSON and get clean block-style YAML: maps with key: value, arrays with - item, nested objects properly indented, strings quoted only when needed. Empty containers render as {} / [].
  • To JSON - paste YAML and get pretty-printed JSON. The parser handles maps, arrays, plain/quoted strings, numbers, booleans, null, # comments and inline - key: value items.
  • Live - conversion runs as you type; switch mode any time.
  • Copy / Clear - copy the output or reset both panes.

Every conversion runs locally - your data never leaves your device.