Free JSON to YAML
Turn JSON into YAML for Kubernetes, Docker Compose, GitHub Actions and other config files. Paste or drop a file; it converts as you type.
Runs on your device
What to do next
How to use JSON to YAML
- 1
Paste JSON or drop a .json file.
- 2
The YAML appears as you type; set the indent or sort the keys if you like.
- 3
Copy the YAML or download it as a file.
JSON to YAML converts JSON into YAML, the readable format used by Kubernetes, Docker Compose, GitHub Actions, Ansible and many app config files. Paste JSON or drop a file and the YAML appears as you type.
Keys keep their order, and values that look like numbers but are text stay quoted so their meaning doesn’t change.
Why YAML for config
YAML has no braces or quotes around keys and allows comments, so long configuration files are easier to read and review. It holds exactly the same data as JSON.
Watch the details
In YAML, indentation is meaning. FileConvertora writes standard 2-space indentation and quotes text such as "1.10", "007" or "true" that YAML would otherwise read as a number or a boolean.
| Format | Looks like | Used for | Notes |
|---|---|---|---|
| JSON | Braces and quotes | APIs, web apps, config | Strict: no comments |
| YAML | Indentation | Config files (Docker, Kubernetes, GitHub Actions) | Comments allowed; indentation matters |
- Move data from a JSON source into a tool that expects YAML.
- Check how JSON data looks in YAML before using it in a config or an import.
- The file is opened and processed by your browser on your own device. It is never uploaded, so no server, including ours, ever receives a copy.
- Your data is parsed and written in your browser, which matters for API keys, tokens and customer data.
- It says the input is invalid
- The error shows the line. Common causes: tabs in YAML, a trailing comma in JSON, an unclosed tag in XML.
- Nested data looks flat
- CSV can’t hold nested objects; nested values are joined into column names like address.city.
Questions
Is the YAML valid for Kubernetes and Docker Compose?
Yes. It’s standard YAML 1.2 with 2-space indentation, which those tools read. Keys keep their order.
Are numbers and true/false kept?
Yes. 42 stays a number and true stays a boolean; text that looks like a number is quoted so it stays text.
Is my data uploaded?
No. Everything is converted in your browser, so private config files and data stay on your device.
What other data tools are there?
YAML to JSON converts the other way, and JSON Formatter checks and tidies JSON before converting. Data Format Converter handles XML, TOML and CSV too.
Something not working, or a question that isn’t here? Tell us about it
Popular conversions
More file tools
See all 28- Share FilesNewSend files by link, no upload
- Zip FilesBundle any files into one archive
- Unzip FilesNewOpen ZIP files and save what’s inside
- Compare TextNewFind the differences between two texts
- QR Code GeneratorNewLinks, Wi-Fi, contacts and more
- Wi-Fi QR CodeNewA sign guests scan to connect
- Excel to CSVNewSave a spreadsheet sheet as CSV
- CSV to ExcelTurn a CSV file into an .xlsx workbook