JSON to YAML Converter

Turn JSON into clean YAML for config files. Runs in your browser.

Input (JSON)

Output (YAML)


Paste or type something on the left.

Runs in your browser. Your data is never uploaded.

Notes

Strings that could be read as numbers, booleans or null are quoted so the YAML keeps the same types as your JSON. To check or tidy the input first, use the JSON Formatter.

FAQ

How do I convert JSON to YAML?

Paste your JSON on the left. The YAML appears on the right as you type. Copy it or download it as a .yaml file.

Is YAML a superset of JSON?

Mostly yes. Valid JSON is almost always valid YAML 1.2, but YAML is easier to read and edit by hand, which is why config files use it.

Are comments kept?

JSON has no comments, so there is nothing to carry over. You can add comments to the YAML after converting.

More tools