What does this tool do?
Paste YAML below to convert it into JSON. Everything runs locally using JavaScript in your browser — nothing you paste or upload is ever sent to a server.
How to use this tool
- Paste your yaml input into the left-hand box.
- Click Convert to JSON.
- Copy the json output from the right-hand box.
Frequently asked questions
Does it support comments in the YAML?
Yes — YAML comments (starting with #) are simply ignored, exactly as a YAML parser would handle them.
What about YAML-specific types like dates or multi-document files?
Standard scalars, nested mappings, sequences, and flow-style collections all convert correctly; only the first document in a multi-document YAML file is used.
Why would I convert YAML to JSON?
JSON is the format most APIs, JavaScript code, and tools expect, while YAML is often used for human-edited config files like Docker Compose or Kubernetes manifests.
