JSON to YAML
Paste JSON, get YAML. It runs in this page, not on a server.
Output
Paste or type above to see the result here.
Your files stay on your device
This tool runs entirely in your browser. What you paste is processed on your device and is never sent to a server, so it is safe to use with tokens, keys and unpublished text.
How it works
- Paste or type the JSON. The YAML appears as you type — there is no button to press.
- Check the message if the input is not valid JSON: it says what is wrong and where.
- Copy the YAML, or download it as a file.
Frequently asked questions
- Is my JSON sent anywhere?
- No. The conversion is a function running in this page. That matters more than it sounds: the JSON people convert is usually a config file, and config files hold hostnames, bucket names and sometimes keys.
- Why is some text in quotes?
- Because YAML would otherwise read it as something else. The string "true", the string "123" and the string "2026-09-17" would come back as a boolean, a number and a date, so they are quoted. Text that cannot be mistaken for anything is left bare, which is what makes YAML pleasant to read.
- What happens to long text?
- Text with line breaks in it is written as a block scalar — the `|-` form — so the lines stay lines instead of becoming escape sequences. That is how a script or a certificate inside a config file should look.
- Does it keep the order of my keys?
- Yes. Keys come out in the order they appear in the JSON, which keeps a converted file reviewable against the original.
- Can it go the other way?
- YAML to JSON does, for the subset that configuration files are written in. It refuses anchors and aliases rather than quietly dropping them.
Related tools
⇄ YAML to JSON Paste YAML, get JSON. Nothing is uploaded, and nothing is guessed at. ⇄ JSON to CSV Turn API responses and exports into a spreadsheet-ready CSV without your data leaving the page. ⇄ CSV to JSON Turn spreadsheet exports into JSON for APIs, scripts and config files, without your data leaving the page. ⇄ Markdown to HTML Write in Markdown, paste the HTML anywhere. Rendered locally, so your draft stays on your device.