Convert JSON to YAML and Back
Two-way conversion between JSON and YAML.
The JSON ⇄ YAML converter translates data between two popular formats in either direction. JSON and YAML describe the same structures — objects, arrays, numbers, strings — but the syntax differs: JSON relies on curly and square brackets, while YAML uses indentation and dashes and reads more easily.
This kind of conversion comes up constantly in development and DevOps: APIs almost always return JSON, while config files (Docker Compose, Kubernetes, GitHub Actions, CI/CD pipelines) are written in YAML. Instead of rewriting the structure by hand, just paste one format and get the other.
Conversion happens right in your browser (via js-yaml), so nothing is sent anywhere. If the JSON or YAML you paste is invalid, the tool flags the syntax error. Need a spreadsheet instead? Try JSON to CSV.