YAML ↔ JSON
Runs in your browserConvert between YAML and JSON and locate syntax errors.
How to use
Steps
- Choose YAML to JSON or JSON to YAML, then paste one complete document.
- Select Convert and check the arrays, objects, booleans, and strings. If YAML parsing fails, use the reported line and column to check indentation, duplicate keys, or quotes.
- Copy or download the output. When debugging app settings, you can paste converted JSON into JSON Formatter or JSON Diff.
Example
Converting the YAML below to JSON,id keeps its leading zeros, andenabled remains a boolean.
id: "0012"
enabled: true
tags:
- demo
Tips
- Supports one YAML 1.2 document, string keys, and a limited number of anchor references. Quote numeric-looking keys, for example
"123": demo. - Conversion reformats the document and drops YAML comments. Large integers and decimals retain their precision.