Example input
{"name":"Ada","active":true,"skills":["SQL","Python"]}
DataHub
Tools
JSON to YAML
Local-first
Convert JSON objects and arrays into readable YAML.
The tool validates input with JSON.parse and serializes the resulting JavaScript value through js-yaml using two-space indentation. It converts data values, not original JSON spelling, duplicate keys, or formatting.
{"name":"Ada","active":true,"skills":["SQL","Python"]}name: Ada
active: true
skills:
- SQL
- PythonDuplicate JSON keys are overwritten during parsing, and numbers beyond JavaScript's safe range may lose precision before YAML is generated.
JSON and YAML overlap for common values but differ in syntax and data-model features. This page parses strict JSON and serializes the resulting JavaScript value, so original spelling, formatting, duplicate keys, and number precision beyond the JavaScript range are not preserved.
Sources checked July 27, 2026. Standards can change; review the original sources again before formal integration or compliance decisions.
The page uses JSON.parse followed by browser-local js-yaml.
No. JSON.parse keeps the final value for each repeated key.
Yes. JavaScript number precision applies before YAML serialization.
No. Indentation, quoting, key spacing, and number spelling are regenerated.