Skip to content
snip tools

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

  1. Paste your YAML. Paste YAML config into the input box.
  2. Read the JSON. The equivalent JSON appears live; errors are pinpointed.
  3. 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

What YAML version does it support?
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.
Can it convert multiple documents?
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.
What if my YAML is invalid?
You'll get a clear error with the line and column of the problem, so indentation or syntax mistakes are easy to find.
Is my data uploaded?
No — parsing runs entirely in your browser.