JSON to YAML Converter
Turn JSON into clean, readable YAML for config files, Kubernetes manifests and CI pipelines.
How to convert JSON to YAML
Paste your JSON
Paste or type it into the box, or press Try an example.
Pick the indentation
Choose 2 or 4 spaces.
Copy or download
Save the output as a .yaml file, for config, CI or Kubernetes manifests.
Worked example
This is what JSON to YAML Converter gives for its own sample values. Open the tool above and change anything to try your own.
JSON
{
"name": "sarva-tools",
"version": "1.2.0",
"private": true,
"author": { "name": "Ada", "email": "ada@example.com" },
"keywords": ["tools", "developer"],
"scripts": { "build": "next build", "test": "vitest run" }
}- Indentation
- 2 spaces
YAML
name: sarva-tools version: "1.2.0" private: true author: name: Ada email: ada@example.com keywords: - tools - developer scripts: build: next build test: vitest run
About JSON to YAML Converter
Turn JSON into readable YAML for Kubernetes, Docker Compose, GitHub Actions and other config files. Strings that could be read as numbers or booleans are quoted, so the YAML means exactly what the JSON did.
FAQs
Does the YAML keep my data exactly?
Yes. Keys, lists, numbers, booleans and null are preserved, and risky strings such as "true" or "123" are quoted.
Can I convert it back?
Use YAML to JSON Converter.
What if my JSON is invalid?
An error message tells you what is wrong and on which line.