JSON to YAML Converter
Paste JSON to get YAML instantly. Works with objects, arrays and deeply nested data, with clean 2-space indentation. Your data stays in your browser.
How to convert JSON to YAML
- Paste or type your JSON into the input box.
- Read the formatted YAML in the output box as you type.
- Copy the YAML or download it as a .yaml file.
Examples
Object with nested data
{"name":"Ada","roles":["admin","dev"]}name: Ada roles: - admin - dev
Frequently asked questions
What is the difference between JSON and YAML?
Both describe the same data structures, but YAML uses indentation instead of braces and brackets, which many people find easier to read and edit. JSON is stricter and more common in APIs.
When should I use YAML instead of JSON?
YAML is popular for config files, like Docker Compose, Kubernetes and CI pipelines, because it is readable and supports comments. JSON is better for data exchanged between programs.
Are comments preserved in the conversion?
No. JSON has no comments to begin with, so the YAML output contains only your data. You can add comments to the YAML yourself afterward.
Is my data uploaded anywhere?
No. The conversion runs entirely in your browser, so your JSON never leaves your device.
How is the YAML indented?
The output uses 2-space indentation and does not wrap long lines, so the result is tidy and predictable for config files.
Does it handle nested objects and arrays?
Yes. Nested objects and arrays are converted to indented YAML maps and sequences, no matter how deep they go.
Related tools
YAML to JSON
Convert YAML to JSON online. Paste YAML and get clean, pretty-printed JSON with the indentation you choose. Runs entirely in your browser.
JSON Formatter
Format, validate and minify JSON online. Pretty-print with custom indentation, sort keys and catch syntax errors. Runs in your browser.
Binary to Decimal
Convert binary to decimal online. Paste any binary number, with or without spaces, and get the exact base-10 value instantly. Runs in your browser.
Binary to Hex
Convert binary to hexadecimal online. Paste a binary number and get exact hex, with optional uppercase. Handles huge values. Runs in your browser.
Celsius to Fahrenheit
Convert Celsius to Fahrenheit instantly. Type a temperature in C and get F, with the formula and a quick reference table. Runs in your browser.
Centimeters to Inches
Convert centimeters to inches instantly. Type a length in cm and get inches, with the formula and a quick reference table. Runs in your browser.