Convert JSON to YAML
Paste JSON and get tidy, readable YAML as you type – just right for Kubernetes manifests, Docker Compose, GitHub Actions and app configs. Nothing leaves your browser.
Converted on your device. Your data never leaves your browser.
Turning JSON into YAML
- 1
Paste the JSON into the input box, drop a .json file onto it, or press Open file.
- 2
Pick 2- or 4-space indentation – the YAML updates as you type.
- 3
Copy the YAML or press Download .yaml.
What makes this JSON to YAML converter handy
Readable output
Keys keep their order, long strings aren't wrapped, and values are only quoted where YAML needs it.
Checks as you go
Invalid JSON is flagged straight away with the parser's error message, so you can fix it quickly.
Ready for configs
The output drops straight into Kubernetes, Docker Compose, Ansible, GitHub Actions and other YAML tools.
Private and instant
Everything runs in your browser, so secrets in your configs are never uploaded.
What people use the JSON to YAML converter for
Write Kubernetes manifests
Turn JSON specs into readable YAML.
Docker Compose and CI files
Produce YAML for GitHub Actions, GitLab CI and Compose.
Make configs easier to read
YAML is simpler to review and comment than JSON.
OpenAPI and Swagger specs
Switch API specs from JSON to YAML.
Also searched for as: JSON to YAML converter, JSON to YML, config converter and Kubernetes YAML from JSON.
Related searches
- convert json to yaml for kubernetes
- json to yaml for docker compose
- json to yaml online converter
- convert package json to yaml
- json to yml for github actions
- convert complex json to yaml format
Quick data conversions in the browser
Switch between CSV, JSON and YAML, or turn images into Base64, without installing anything. Everything is processed in your browser, so exports, customer data and API keys stay on your machine rather than going to someone else's server.
Questions & answers
How is YAML different from JSON?
They store the same kinds of data, but YAML uses indentation in place of braces and quotes, making it easier to read and edit by hand – which is why config files favour it.
Will Kubernetes and Docker Compose accept the YAML?
Yes. It's standard YAML 1.2 that Kubernetes, Docker Compose and other tools read. Strings YAML could misread, like "yes" or "1.0", are quoted for you.
Is the key order kept?
Yes – keys appear in the same order as in your JSON.
Do my files get uploaded anywhere?
Never. The work is done by JavaScript running in your own browser, on your own device. Nothing is sent to a server or kept anywhere, which makes it safe for personal photos and sensitive data – and it carries on working even on a patchy connection.
You might also need
Guides for this tool
- How to Turn JSON into YAML online
- How to Turn JSON into YAML on Mac
- How to Turn JSON into YAML on Windows
- How to Turn JSON into YAML on Chromebook