YAML to JSON Converter
Basic conversion for simple YAML (key: value, nested with indentation). For complex YAML use a full parser.
About this YAML to JSON Converter tool
YAML is a human-friendly format common in configuration files such as Docker Compose, Kubernetes and CI pipelines. JSON is the format most APIs expect. This tool converts simple YAML into JSON. It supports basic YAML, so advanced features such as anchors and complex multi-document files may not convert.
How to use it
- Paste your YAML into the input box.
- Click Convert.
- Copy the JSON, and use the JSON Formatter if you want to beautify it.
Example
name: Asha
age: 30
Converts to {"name":"Asha","age":30}.
Frequently asked questions
Does it support all of YAML?
It supports simple YAML. Anchors, aliases and complex features may not be handled.
Why do I get an error?
Usually it is indentation. YAML uses spaces, not tabs, and the indentation must be consistent.
Is my data uploaded?
No. Conversion happens in your browser.