$devtoolkit.sh/tools/yaml-to-json

YAML to JSON

Convert YAML to JSON with proper structure and types.

$yaml input
0 chars1 lines
$json output[READY]
0 chars1 lines

Related Tools

FAQ

What YAML syntax is supported?
The tool handles key-value pairs, indented object nesting, dash-prefixed arrays, quoted strings, and common scalars including numbers, booleans (true/false/yes/no), and null (~). Multi-document YAML and advanced anchors are not supported.
How are YAML booleans converted?
YAML boolean values true, false, yes, no, on, and off are converted to their JSON boolean equivalents (true or false). If you want the literal string "yes" in JSON, quote it in YAML.
What happens if I paste invalid YAML?
The tool displays a parse error message describing the problem. Common issues include incorrect indentation (YAML requires consistent spaces, not tabs) and missing colons after keys.

YAML to JSON parses basic YAML syntax — key-value pairs, indented nesting, dash-prefixed array items, and quoted strings — and outputs equivalent JSON. Scalar types (numbers, booleans, null) are inferred automatically. Unsupported YAML syntax triggers a clear error message.

/tools/yaml-to-jsonv1.0.0