About JSON to YAML
Convert JSON into clean, readable YAML. Paste a JSON document and get indented YAML back, ready for a configuration file or an API example. If the JSON is invalid you get the line and column of the problem instead. Strings that older YAML parsers could mistake for other types, such as yes, null or 1.5, are quoted so the meaning survives the trip.
How to use JSON to YAML
- Paste your JSON or open a .json file.
- Choose the indentation (2 or 4 spaces) and whether to sort keys.
- Check the YAML on the right.
- Copy it or download converted.yaml.
Tips and good to know
- Numbers keep their value, but JSON numbers with 16 or more digits may already have lost precision when the JSON was read.
- Key order is kept unless you tick Sort keys.
- Going back with the YAML to JSON tool gives you the same data again.
YAML gotchas after converting
YAML is a superset of JSON that relies on indentation instead of braces, which makes configuration files easier to read. Some values need care: strings like yes, no, on and off may be read as booleans by older YAML parsers, and version numbers like 1.10 can become 1.1 if not quoted.
Why people prefer YAML for configuration
YAML shows the same data as JSON with less punctuation: no braces, no quotes around most strings and indentation instead of brackets. It also allows comments, which JSON does not, so it is popular for configuration files such as Docker Compose, Kubernetes manifests and GitHub Actions workflows. Indentation must stay consistent, using spaces only.
Frequently asked questions
Why are some strings in quotes?
Words like yes, no, on, off, null and strings that look like numbers would be read as other types by many YAML parsers, so they are quoted to stay text.
Can it convert JSON with comments?
No. Comments are not valid JSON, so the tool reports an error at the first one.
Is JSON to YAML free?
Yes. JSON to YAML is 100% free: no sign-up, no paid plan, no trial and no limit on how often you use it. It runs in your browser, and ToolzAura is paid for by ads, so every tool stays free.
Are my files uploaded?
No. This tool runs in your browser, so your input stays on your device.