JSON to YAML Convert
Convert JSON into readable YAML for configs and pipelines.
JSON to YAML is a free online tool that convert JSON into readable YAML for configs and pipelines. It runs entirely in your web browser using plain JavaScript, so files are processed on your own device and never uploaded to a server. There is no sign-up, no file size limit imposed by the site, no watermark and no paid tier.
- Price
- Free — no account, no quota, no watermark
- Category
- Convert
- Where it runs
- In your browser, on your device
- Files uploaded
- None
- Technology
- plain JavaScript
- Settings
- None — it just works
- Works offline
- Yes, after the first visit
About JSON to YAML
YAML 1.2 is a strict superset of JSON, so every JSON document is already valid YAML — the conversion is about producing the readable indented form people actually want. Watch for the type coercion: YAML 1.1 parsers, which include several still in wide use, read unquoted `no`, `off` and `yes` as booleans. That is the "Norway problem", where the country code NO silently becomes false.
How to use it
- Paste the text you want to run through json to yaml.
- There is nothing to configure — the result updates as you type.
Under the hood
| Runs on | plain JavaScript — runs the whole thing |
Questions
Why are some strings quoted in the output?
Because leaving them bare would change their type. `yes`, `no`, `on`, `off`, `null`, `~` and anything that looks numeric are quoted so they survive as strings.
Which YAML version does this target?
YAML 1.2, the current specification. The output is deliberately conservative enough to parse correctly under 1.1 parsers too.