Content and text
YAML to JSON Converter
Turn YAML into JSON, with anchors resolved and errors pinned to a line and column.
Runs in your browser; nothing is uploaded. · Free, no account · 2 min
Importing a saved run into your account is coming soon. Until then, your last runs stay in this browser only, and you can download your files.
How to use
- Paste your YAML, such as a config file, or load the example.
- Choose the JSON indent.
- Read any error or warning with its line and column and fix the YAML.
- Copy the JSON or download it as a .json file.
What it checks and how it works
The YAML is parsed with the yaml library, which implements YAML 1.2 (revision 1.2.2 of the specification) with the core schema, so true, false, null and numbers become JSON types, and a value such as yes or no stays text. Anchors and aliases are resolved, and merge keys are applied. A file with several documents separated by --- is written as a JSON array with one item per document.
JSON has no comments, dates or binary type, so comments are dropped and a timestamp stays a string. Keys that are not strings, such as numbers, are written as strings.
Sources
- YAML Ain't Markup Language (YAML) revision 1.2.2 opened 29 Oct 2026
- eemeli/yaml documentation (the parser the tool uses) opened 29 Oct 2026
- RFC 8259: The JavaScript Object Notation (JSON) Data Interchange Format opened 29 Oct 2026
Related tools
JSON to YAML Converter
Turn JSON into clean, readable YAML for config files and docs.
JSON Formatter and Validator
Format, minify or check JSON and see exactly where it breaks.
CSV to JSON Converter
Turn a CSV table into a JSON array of objects, with the delimiter detected for you.
JSON to CSV Converter
Turn a JSON array of records into a CSV file that opens cleanly in a spreadsheet.
Questions
About this tool
YAML 1.2 only reads true and false as booleans. Older YAML 1.1 parsers also accepted yes, no, on and off, but the current specification does not.
They are dropped, because JSON has no comment syntax.
Yes. Documents separated by --- become items of a JSON array, in order.
Get started today
Find out where your brand stands in AI. Free.
Run a free AI visibility analysis on your domain. No credit card, results in minutes. See what AI engines say about your brand today.
Brands already measuring their AI visibility with Zaher.


