How to use it
- 1Paste your YAML or drop a file onto the input panel.
- 2Adjust the options — the result updates as you type.
- 3Copy the JSON or download it. Drop several files to convert a batch into one ZIP.
How YAML becomes JSON
YAML and JSON both describe nested data, so structure carries over directly: objects stay objects, lists stay lists, and key order is kept.
The differences are in the details each format can express — comments, nulls, dates and attributes — and the notes under the output tell you whenever something had to be adapted.
YAML and JSON, briefly
YAML is the configuration format of Kubernetes, Docker Compose, GitHub Actions, Ansible and OpenAPI. It expresses the same structures as JSON with indentation instead of brackets, plus comments and anchors.
JSON is the default language of web APIs and document databases. It nests objects and arrays to any depth and distinguishes strings, numbers, booleans and null, but has no comments and no date type.
Questions
Are anchors, aliases and multiple documents supported?
Yes. Anchors and aliases (&name, *name) and merge keys (<<) are resolved, and a file with several documents separated by --- becomes an array. Comments can't be carried over because the target format has nowhere to put them.
Does the converter guess data types?
Yes, unless you turn it off. Whole numbers, decimals, true and false become real JSON numbers and booleans. Values with leading zeros (like ZIP code 00501), numbers longer than 15 digits and anything that isn't unambiguously numeric stay as strings, so IDs and phone numbers survive intact.
Guides that use this tool
· 5 min read
JSON, YAML or TOML? Converting configuration without surprises
What changes when config moves between JSON, YAML and TOML: the Norway problem, version strings, octal numbers, nulls, comments and large integers — and how to fix each.