YAML to JSON converter
Convert YAML to JSON. Errors are pinpointed by line, and everything stays in your browser.
Runs 100% in your browser YAML → JSON
How to convert YAML to JSON
- Paste your YAML. Paste YAML config into the input box.
- Read the JSON. The equivalent JSON appears live; errors are pinpointed.
- Copy or download. Grab the JSON with Copy or Download.
About YAML and JSON
YAML is the human-friendly configuration format behind Docker Compose, GitHub Actions, Kubernetes and countless app configs; JSON is what most programs and APIs consume. Because YAML is a superset of JSON, conversion is lossless for normal config data. Pair this with the YAML validator to catch indentation mistakes before they break a deploy.
Frequently asked questions
- It parses YAML 1.2 (the JSON-compatible spec) using the js-yaml library, covering the features you'll meet in config files, CI pipelines and Kubernetes manifests.
- A single document converts to one JSON value. For multi-document YAML (separated by
---), the first document is converted; split them if you need each one. - You'll get a clear error with the line and column of the problem, so indentation or syntax mistakes are easy to find.
- No — parsing runs entirely in your browser.