- Home
- Data Converters (JSON/CSV)
- JSON to YAML
JSON to YAML Converter
Convert JSON into clean, readable YAML for Kubernetes, Docker Compose, GitHub Actions and other config files.
Everything runs in your browser. Your data never leaves your device.
How do I convert JSON to YAML?
Paste your JSON into the left box. The Toolzzz JSON to YAML converter uses the trusted js-yaml library to write clean YAML with 2 or 4 space indents. Strings that need quotes are quoted automatically, so the YAML reads back to exactly the same data.
- Powered by the js-yaml library
- 2 or 4 space indentation
- Optional sort keys A to Z
- Optional quote all strings
- Long lines are never wrapped
- Handles nested objects and arrays
- Free and private, runs in your browser

How to convert JSON to YAML in 3 steps
The YAML updates as soon as your JSON is valid.
Paste your JSON
Paste it or press Upload to open a .json file.
Pick the style
Choose the indent, and whether to sort keys or quote all strings.
Save the YAML
Press Copy, or Download to save a .yaml file.

Watch: how to use the free JSON to YAML
Where YAML is used
Kubernetes manifests
Write Deployments, Services and ConfigMaps from JSON.
Docker Compose
Convert service definitions to docker-compose.yml.
CI/CD pipelines
GitHub Actions, GitLab CI and Azure Pipelines use YAML.
App config
Many frameworks read settings from YAML files.
OpenAPI specs
Turn a JSON API spec into the more readable YAML form.
Static sites
Front matter and data files in Jekyll, Hugo and others.
How to use the JSON to YAML on Windows, Mac, iPhone and Android
No app to install. The tool works in any modern browser, so the steps are almost the same everywhere.
On Windows
- Open toolzzz.com/json-to-yaml/ in Chrome, Edge or Firefox.
- Paste (Ctrl+V) your JSON into the left box, or press Upload to open a file.
- Pick the indent and options.
- Press Copy to put the result on your clipboard, or Download YAML to save it. Files go to your Downloads folder.
On Mac
- Open toolzzz.com/json-to-yaml/ in Safari or Chrome.
- Paste (Cmd+V) your JSON into the left box, or press Upload to open a file.
- Pick the indent and options.
- Press Copy to put the result on your clipboard, or Download YAML to save it.
On iPhone and iPad
- Open toolzzz.com/json-to-yaml/ in Safari.
- Touch and hold the box, tap Paste to add your JSON into the left box, or tap Upload to open a file.
- Pick the indent and options.
- Tap Copy to put the result on your clipboard, or Download YAML to save it. Downloads appear in the Files app.
On Android
- Open toolzzz.com/json-to-yaml/ in Chrome.
- Long-tap the box and tap Paste to add your JSON into the left box, or press Upload to open a file.
- Pick the indent and options.
- Tap Copy to put the result on your clipboard, or Download YAML to save it. Downloads go to the Downloads folder.
Toolzzz vs. other online converters
| Feature | Toolzzz JSON to YAML | Typical online converters |
|---|---|---|
| Price | Free, no limits | Free tier, then paid plans |
| Where your data goes | Stays in your browser | Often uploaded to a server |
| Sign-up | Not needed | Sometimes needed to download |
| Speed | Converts as you type | Upload, wait, then download |
| Size limit | Only your device memory | Often 1 to 10 MB on free plans |
| Error messages | Line and column shown | Often just "invalid input" |
"Typical" describes common limits of free online services. Plans and limits differ between sites.
Why convert data with Toolzzz
Private by design
Your data is converted by JavaScript in this tab. Nothing is sent to Toolzzz or anyone else.
Instant results
The output updates while you type or paste. There is no queue and no waiting.
Clear errors
Invalid input is flagged with the reason and, where possible, the exact line and column.
Copy or download
Copy the result in one click or save it as a ready-to-use file.
Works everywhere
Windows, Mac, Linux, iPhone, iPad and Android. Any modern browser will do.
Free forever
No account, no limits, no watermark and no trial period.
Tips for the best result
- Kubernetes and most tools expect 2 space indentation.
- YAML treats
yes,no,onandoffas booleans in some parsers. Values from JSON strings are quoted to stay safe. - Tabs are not allowed for indentation in YAML.
- Validate your JSON first with the JSON Formatter if you see an error.
- Need to go back? Use YAML to JSON.
Key terms explained
- YAML
- YAML Ain’t Markup Language: a human-friendly data format that uses indentation instead of brackets.
- Mapping
- A YAML set of key: value pairs, the same as a JSON object.
- Sequence
- A YAML list written with "- " items, the same as a JSON array.
Frequently asked questions
Is JSON to YAML free?
Yes. It is free with no limits and no sign-up.
Is my config uploaded?
No. The conversion runs in your browser, so secrets in your config stay on your device.
Will the YAML read back to the same data?
Yes. Values that could be misread, such as "true" as a string or "08", are quoted automatically.
Can I use 4 space indentation?
Yes. Choose 4 spaces under Indent.
Does it keep the key order?
Yes, unless you tick Sort keys.
Why do I get an error?
Your JSON is not valid. The error message explains why. Fix it or check it with the JSON Formatter.
Can it convert YAML to JSON?
Yes, with the YAML to JSON converter.
Does it work offline?
Once the page and its YAML library have loaded, conversion works without a connection.
