JSON ↔ YAML Converter
Convert JSON to YAML and YAML to JSON in your browser with a safe parser, line and column error messages, format, minify, swap and download.
Convert JSON to YAML and YAML to JSON in your browser with a safe parser, line and column error messages, format, minify, swap and download.
JSON ↔ YAML Converter turns JSON into readable YAML and YAML back into valid, formatted JSON. Nested objects, arrays, booleans, null, numbers and strings are carried across correctly, and strings that could be mistaken for other types — such as "true", "123" or "null" — are quoted in the YAML output so their type is preserved.
YAML is read with js-yaml using its core schema, bundled on this site. Custom or executable tags such as !!js/function or !!python/object are rejected rather than run, and dates stay plain strings. Comments, anchors and the original layout of a YAML file are not preserved in the converted output. Errors show the line and column where the problem was found.
It uses js-yaml with the core schema. Unknown or custom tags such as !!js/function are rejected with an error, and nothing in the YAML is executed.
No. Comments, anchors and the original formatting are not part of the data, so they are not preserved when converting.
Because it was a string in the JSON. Without quotes YAML would read it as the boolean true, so the converter quotes it to keep the type.
No. Values like 2026-10-28 stay plain strings, which matches how JSON stores them.
Not in one go. If the input has more than one document separated by ---, the tool asks you to convert them one at a time.
No. Parsing and conversion happen entirely in your browser.