YAML ↔ JSON Converter
Paste YAML or JSON — the tool detects the format and converts it to the other.
Features
How to Use
1. Paste either YAML or JSON into the input box.
2. Click Convert. The other format appears on the right.
3. Copy or download the result.
About this tool
YAML and JSON describe the same kinds of data — objects, lists, strings, numbers, booleans and null — but YAML uses indentation and is easier to write by hand, while JSON is stricter and easier for programs to exchange. This converter detects which format you pasted and converts it to the other. It handles the YAML found in most configuration files: nested mappings and sequences defined by indentation, quoted and plain scalars, numbers, booleans, null, full-line comments and inline [lists] or {objects}. Converting to JSON is also a quick way to see how a YAML file will actually be interpreted. Advanced YAML features such as anchors, aliases, multi-line block scalars and multiple documents are not supported, so validate those files with a full YAML library.