YAML to JSON
How to convert YAML to JSON
- Paste your YAML into the box.
- The JSON appears below as you type. If the YAML has a mistake, the line and column are shown.
- Switch Convert to JSON to YAML to go the other way, or click Swap to convert the result back.
Frequently asked questions
What about files with several documents?
YAML documents separated by --- become a JSON array, one item per document.
Are anchors and aliases supported?
Yes. Aliases are expanded into full copies in the JSON.
Is my data uploaded?
No. The conversion happens in your browser, and nothing is sent anywhere.