How does JSON convert to YAML?
YAML is a friendlier way to write the same data JSON holds. It uses indentation instead of braces and brackets, and it allows comments in the file. That is why it is common for Kubernetes manifests, CI pipelines and app settings.
The tool prints your JSON as YAML with the indent you choose. It also quotes strings that could be misread. The text "true", "123" and "null" stay in quotes, so a string never turns into a boolean, number or null. The sample becomes a short config with a name, a flag, a list of tools and tags.
How to use the JSON to YAML Converter
- Paste your JSON on the left.
- Choose a 2 or 4 space indent.
- Read the YAML result, or the error naming the line and column.
- Copy or download the YAML.