JSON to YAML Converter
Convert JSON objects and arrays into indented YAML text.
Enter your details below.
How to use
- Paste your JSON into the box.
- Click Convert to YAML.
- Copy the YAML result.
About this tool
This tool walks a JSON value recursively and writes maps as key: value lines, nested maps indented by two spaces, and arrays as dash lines. Plain strings are written as-is when they contain only letters, digits, spaces and a few safe punctuation marks; anything else is written as a quoted string, so colons and special characters cannot be mistaken for YAML structure. Null becomes null, and empty objects and arrays become {} and [] so no information is silently dropped.
Frequently asked questions
Why are some strings quoted?
Because a string containing a colon, a hash or other YAML-special characters could be misread as structure, so quoting keeps it safely a string.
What happens to empty objects and arrays?
They become {} and [], so an empty value is still visible instead of disappearing.