YAML to JSON
Convert YAML into strict JSON, with multi-document streams, YAML-only types and duplicate keys handled.
Output will appear here…
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.
Related tools
How to use YAML to JSON
- 1Paste or upload YAML. Errors show the line and column.
- 2For multi-document streams (---) use the tabs above the output to view all documents as an array or one at a time.
- 3Choose Resolve & convert to turn timestamps, binary and .inf into JSON-safe values, or Strict JSON types to keep them as plain strings.
- 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.