YAML ↔ JSON Converter

Convert YAML to JSON and back in your browser, with options for sort-keys, indent, and round-trip preservation.

Direction
What YAML features are supported
  • Block mappings (key: value) and block sequences (- item) at any depth.
  • Flow collections: [1, 2, 3] and {a: 1, b: 2}.
  • Scalars: plain, single- or double-quoted strings; integers and floats including .inf and .nan; booleans; null ~.
  • Multi-line strings: literal block (|) and folded block (>) with chomping indicators.
  • Anchors and aliases: &name and *name, plus merge-key style where a bare *alias line merges the referenced mapping.
  • Multi-document streams: --- and ... markers; YAML to JSON emits a JSON array for multi-doc input.

Pure client-side, works offline once loaded, no upload, no tracking.