In short
To convert YAML to JSON, paste the YAML on the left and copy the pretty-printed JSON on the right. If the YAML has an error, usually inconsistent indentation or a missing colon, you'll see the parser's message, which makes this a quick YAML validator too.
How to use the YAML to JSON Converter
- 1Paste or type your input in the left box (or click "Try an example").
- 2Adjust the options if needed. The result updates as you type.
- 3Copy the result or download it as a file.
Common YAML mistakes
Mixing tabs and spaces, inconsistent indentation, and unquoted strings that look like other types (yes, no, on, off, 1.0) cause most YAML bugs. Converting to JSON shows exactly how a parser interprets your file.
Frequently asked questions
Are YAML comments kept?
No. JSON has no comments, so they're dropped.
Does it support multiple documents?
Only the first document in a file separated by --- is converted.
Is my data sent anywhere?
No. Everything runs in your browser. What you paste is never uploaded, logged or stored, so it's safe for code, tokens and private content.
Last updated

