Table of Contents
YAML input
JSON output
Conversion runs in your browser, so config files and secrets never leave your device. Multiple YAML documents separated by --- become a JSON array. Comments are dropped because JSON has no comments.
How to Convert YAML to JSON
Paste your YAML into the input box. The JSON appears instantly; copy or download it. Click Swap to turn JSON back into YAML. If the YAML has an error, the message tells you the line and column so you can fix it.
YAML vs JSON
| YAML | JSON | |
|---|---|---|
| Syntax | Indentation-based, minimal punctuation | Braces, brackets and quotes |
| Comments | Yes (#) | No |
| Common uses | Kubernetes, Docker Compose, GitHub Actions, config files | APIs, package.json, data exchange |
| Multiple documents in one file | Yes (---) | No |
Every JSON document is also valid YAML. Validate or prettify the result with the JSON formatter.
Frequently Asked Questions
Is my data uploaded?
No. Conversion happens in your browser, so config files and secrets stay on your device.
What happens to YAML comments?
JSON has no comments, so they are removed in the conversion.
Why does my YAML fail to parse?
The most common causes are tabs instead of spaces, inconsistent indentation and unquoted values containing a colon followed by a space.
