Learn

YAML to JSON Guide

About this tool

Convert YAML to JSON, preserving nesting, arrays and types. Anchors and aliases are resolved, so the output is the effective document rather than the shorthand used to write it.

Questions

What happens to a non-string key?
JSON requires string keys, so numeric and boolean keys are converted to their string form. That is a real difference between the two formats, not a bug.
Are duplicate keys allowed?
No. YAML permits them but almost every parser takes the last one silently, which hides mistakes. This tool reports them instead.