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.
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
JSON to YAML
Convert JSON into clean YAML with control over quoting, wrapping, anchors and multi-document output.
JSON Formatter
Beautify, minify, sort, query and repair JSON with a tree view and copy-as code export.
TOML to JSON
Convert TOML config to JSON and JSON back to TOML, with Cargo, pyproject and netlify presets.
XML to JSON
Convert XML to JSON and JSON back to XML, with attribute, text-node, namespace and array controls.
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.