YAML to JSON Converter

Converted locally with js-yaml 4 (YAML 1.2 core schema). Nothing is uploaded.

Local, YAML 1.2

Paste YAML and get formatted JSON. Parsing happens on your device, and the converter flags values that different YAML parsers read differently.

How YAML maps to JSON

Values that surprise people

This converter uses js-yaml 4, which follows the YAML 1.2 core schema. Tools built on YAML 1.1 (PyYAML, older Ruby and Go libraries) still read yes, no, on and off as booleans, so country: NO can turn into false. Versions like 1.10 become the number 1.1 in every parser. Quote such values. When converting JSON to YAML, those strings are quoted for you.

Indentation must use spaces; a tab produces an error with its line and column, shown above the output.

Related guides

FAQ

Frequently Asked Questions

Is my YAML uploaded?
No. The conversion runs in your browser with the js-yaml library; nothing is sent to a server.
Why did version: 1.10 become 1.1?
Unquoted 1.10 is a number in YAML, and numbers drop trailing zeros. Quote it ("1.10") to keep it as text.
Does it support multiple documents?
Yes. Tick “Multiple documents” to convert a file with --- separators into a JSON array.
Copied to clipboard!