JSON to YAML Converter
Paste JSON and get clean, readable YAML as you type: ideal for Kubernetes manifests, Docker Compose files, GitHub Actions and app configs. Nothing leaves your browser.
Converted on your device. Your data never leaves your browser.
How to convert JSON to YAML
- 1
Paste your 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.
Why use this JSON to YAML converter
Clean, readable output
Keys keep their order, long strings aren't wrapped, and values are only quoted when YAML requires it.
Instant validation
Invalid JSON is flagged immediately with the parser's error message, so you can fix it fast.
Config-ready
Output works directly in Kubernetes, Docker Compose, Ansible, GitHub Actions and other YAML-based tools.
Private and instant
Everything runs in your browser. Secrets in configs are never uploaded.
Popular uses for the JSON to YAML converter
Write Kubernetes manifests
Convert JSON specs into readable YAML.
Docker Compose and CI configs
Create YAML for GitHub Actions, GitLab CI and Compose files.
Make configs readable
YAML is easier to review and comment than JSON.
OpenAPI and Swagger specs
Switch API specs between JSON and YAML.
Also known as: JSON to YAML converter, JSON to YML, config converter and Kubernetes YAML from JSON.
People also search for
- 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
A fast browser file utility for data
Convert CSV, JSON and YAML, or encode images as Base64, with a free online file converter that needs no install. It's a client-side file converter, so private data, exports and API keys stay on your device instead of being sent to a server.
Frequently asked questions
What's the difference between JSON and YAML?
They hold the same kinds of data, but YAML uses indentation instead of braces and quotes, which makes it easier to read and edit by hand. That's why it's popular for configuration files.
Is the YAML output valid for Kubernetes and Docker Compose?
Yes. The output is standard YAML 1.2 that Kubernetes, Docker Compose and other tools accept. Strings that YAML could misread, like "yes" or "1.0", are quoted automatically.
Does it keep the key order?
Yes. Keys appear in the same order as in your JSON.
Are my files uploaded to a server?
No. Conversion runs entirely in your browser via client-side JavaScript, on your own device. Your files never touch a remote server and nothing is stored, so it's a secure, private, no-upload tool for personal photos and confidential data, and it keeps working on slow connections.
Related tools
Step-by-step guides
- How to Convert JSON to YAML online
- How to Convert JSON to YAML on Mac
- How to Convert JSON to YAML on Windows
- How to Convert JSON to YAML on Chromebook