Free tools, no sign-up — everything runs in your browser.
ToolHub 1000Free online tools

YAML to JSON Converter

Convert a YAML subset of nested maps, lists and scalars into JSON.

Quick answer: enter your details below and click Convert to JSON — your result appears instantly, right here in your browser. Nothing you enter is uploaded or stored.
Y
Developer

Enter your details below.

How to use

  1. Paste your YAML into the box.
  2. Click Convert to JSON.
  3. 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.

Related tools

All tools · Read the guide: YAML to JSON Converter