YAML to JSON Converter
Convert a YAML subset of nested maps, lists and scalars into JSON.
Enter your details below.
How to use
- Paste your YAML into the box.
- Click Convert to JSON.
- Copy the JSON result.
About this tool
This converter handles the common YAML subset: nested maps by indentation, lists of scalars, quoted strings, numbers, booleans and null values. It is not a full YAML parser, so anchors, multi-line block scalars, flow collections and lists of maps with complex nesting are outside its scope and may be reported as unsupported. Indentation must use spaces, and nesting is read from relative indent depth, so inconsistent indentation will produce an error rather than a guessed result.
Frequently asked questions
What YAML features are supported?
Nested maps, lists of scalars, quoted strings, numbers, booleans and null values. Advanced features are outside this subset.
Why does indentation matter so much?
Because YAML uses indentation to show nesting, so a line at the wrong depth belongs to the wrong parent. This converter errors rather than guessing.