All Tools
1049+ free tools

YAML ↔ JSON Converter

Convert YAML to JSON and back. The YAML parser is intentionally simple (line-based, 2-space indented) — it handles maps, lists, nested blocks, scalars and block strings.

YAML subset supported

  • Maps: key: value (use 2-space indentation for nesting)
  • Lists: lines starting with -
  • Scalars: strings (quoted or bare), numbers, booleans, null
  • Inline JSON arrays/objects as values: [1,2] or {a:1}
  • Block strings with |
  • Comments starting with #
  • Document markers --- are stripped

Not supported: flow collections across lines, anchors/aliases (&/*), tags (!!), multi-line plain scalars. For complex YAML, use a full parser library.

Related dev tools

AI Prompt Formatter
Structure & format prompts for any AI model with templates
JSON Visualizer
Interactive JSON tree explorer with paths & statistics
Regex Builder
Build & test regex with live highlighting & cheat sheet
JSON Formatter
Format, beautify & validate JSON