JSON to YAML
Convert JSON into readable YAML.
Options
Private by design. This tool runs entirely in your browser. Your input is processed on your own device and is not uploaded by DO101.
About the JSON to YAML
Turns JSON into YAML, which is easier for humans to read and edit — the usual reason to convert a configuration file before checking it into a repository.
How to use it
- 1Paste your JSON.
- 2Choose the indentation.
- 3Copy the YAML output.
What you get
- 2 or 4 space indentation
- Optional forced quoting for ambiguous values
- Handles deep nesting and arrays
- Validates the JSON first
- Runs in your browser
Frequently asked questions
Why would I quote every string?
Unquoted YAML values like yes, no, on and off are read as booleans, and 1.10 becomes a number. Forcing quotes avoids those surprises.
Is YAML always shorter?
Usually, because it drops braces and quotes. It is also far more sensitive to indentation mistakes.
Keep going
People who use this tool usually reach for these next.
Convert YAML configuration into JSON.
Beautify, minify and validate JSON with error positions.
Turn JSON into well-formed XML.
Strip whitespace from JSON to shrink payloads.