Skip to content
DDevToolery

YAML to JSON

Parse YAML safely and emit equivalent JSON.

Loading tool…

About this tool

Converts YAML into JSON, which is often the quickest way to find out what a parser actually made of your configuration. YAML guesses types from unquoted values, and JSON has no ambiguity to hide those guesses behind.

Limitations

  • Parsing uses the safe schema. Custom tags that could construct arbitrary objects are rejected rather than interpreted.
  • YAML anchors are resolved, so the JSON output will repeat what the YAML shared.

Questions

Why did my country code NO become a string here but a boolean elsewhere?
YAML 1.1 treats no as false. This tool parses with the CORE schema, which restricts booleans to true and false — the safe reading. Other parsers differ, which is exactly why quoting such values matters.
It rejected a document another tool accepted.
Custom tags such as !!python/object are refused here by design. Those are the mechanism behind YAML deserialisation attacks, and no configuration file needs them.

Privacy

This page does its work in your browser. What you paste is processed by JavaScript running on your own device and is never sent to a DevToolery server — there is no server that could receive it. The page itself is a static file delivered by a CDN. See exactly what is stored.