YAML to JSON converts a config file into the equivalent JSON structure — the same data, in the format a tool that will not read YAML expects. It runs in your browser, which matters here because config files are exactly the kind of file that tends to contain a key or a hostname.
How to convert YAML to JSON
Paste your YAML, or drop the .yml or .yaml file onto the page.
Check the output parsed as you expected — indentation is what carries the structure in YAML.
Copy the JSON, or download it.
Last updated
Questions
What happens to my YAML comments?
They are lost, because JSON has no comment syntax. This is the one thing that never survives the trip, so keep the YAML file as your source of truth.
Why does my YAML fail to parse?
Almost always indentation — YAML is whitespace-significant, and a tab where spaces were expected will break a document that looks correct. Check for mixed tabs and spaces.