YAML to JSON
Convert YAML to JSON with live preview. Comments are dropped because JSON cannot represent them.
All processing on this page runs locally in your browser unless noted otherwise.
Note: YAML comments are not kept in JSON output.
How to use
- Paste YAML on the left (or import a file).
- Toggle pretty / live convert as needed.
- Copy or download the JSON on the right.
FAQ
Why are comments missing?
JSON has no comments. We show a hint when the source YAML contained # comments.
What about multi-document YAML?
Multiple documents become a JSON array of values.