Skip to content
FizzKit

YAML to JSON

Turn YAML documents into JSON. Multi-document streams are detected automatically and shown per document, anchors and merge keys are resolved, YAML-only types such as timestamps and !!binary are converted to JSON-safe strings with a note, and duplicate keys are reported with their line. Useful when a tool expects JSON but you have config in YAML.

Runs locally in your browser
For large YAML, open fullscreen for a wider view
YAML input
0 chars · 1 line
JSON output
Output will appear here…
Indent
YAML types

Multi-document streams (---) are detected automatically and output as an array, with a tab per document. "Resolve & convert" parses timestamps, !!binary, .inf and other YAML 1.1 types and converts them to JSON-safe strings or null; "Strict JSON types" only recognises the types JSON has, so a bare date stays a string. Duplicate keys are an error by default because YAML 1.2 forbids them.

How to use YAML to JSON

  1. 1Paste or upload YAML. Errors show the line and column.
  2. 2For multi-document streams (---) use the tabs above the output to view all documents as an array or one at a time.
  3. 3Choose Resolve & convert to turn timestamps, binary and .inf into JSON-safe values, or Strict JSON types to keep them as plain strings.
  4. 4Copy or download the JSON.

About YAML to JSON

Turn YAML documents into JSON. Multi-document streams are detected automatically and shown per document, anchors and merge keys are resolved, YAML-only types such as timestamps and !!binary are converted to JSON-safe strings with a note, and duplicate keys are reported with their line. Useful when a tool expects JSON but you have config in YAML.

YAML to JSON is part of FizzKit — a collection of focused developer and ad-tech tools. Because everything runs locally, it works offline once loaded and never exposes your data to a remote server.

Frequently asked questions

Yes. Anchors (&), aliases (*) and merge keys (<<) are resolved during conversion.