How to Turn JSON into YAML online
JSON is the data format behind web APIs and JavaScript apps: records made of named fields that can sit inside one another.. Paste it or drop the file below for tidy YAML right away – no Python, no terminal, and your data stays on your device.
Converted on your device. Your data never leaves your browser.
The steps: Turn JSON into YAML online
- 1
Load this page in any up-to-date browser – Chrome, Safari, Edge or Firefox – on a phone or a computer.
- 2
Paste your JSON into the box, or drag your file into the box above, or click the box to pick one.
- 3
The YAML shows up while you type, or as soon as the file has loaded.
- 4
Copy it, or hit Download to keep the result. It's saved wherever your browser puts downloads.
How your JSON is converted
- Objects turn into indented key: value blocks and arrays into – lists, the same style Docker Compose, Kubernetes and GitHub Actions files use.
- Values YAML would misinterpret (such as yes, no or 1.0) are quoted automatically.
JSON and YAML in brief
- JSON is the data format behind web APIs and JavaScript apps: records made of named fields that can sit inside one another.
- YAML is a config format designed for people to read and edit – Docker Compose, Kubernetes and GitHub Actions all use it – and it relies on indentation rather than brackets and quotes.
Worth knowing
- There's no software to install and no account to create. Everything runs inside the browser tab, so it behaves the same on Windows, Mac, Linux, iPhone, Android and Chromebook.
JSON vs YAML
| JSON | YAML | |
|---|---|---|
| Compression | Plain text | Plain text |
| Ideal for | APIs, apps and settings files | Config files edited by hand |
| Works on | Every programming language | Most languages and DevOps tools |
Questions & answers
Do I have to code to turn JSON into YAML?
No. Paste or drop the file and the converted version appears instantly – no scripts, packages or command line.
What size of file can it cope with?
Files of several megabytes are converted in a moment. There's no set limit; only your device's memory matters.
Do my files get sent anywhere?
No. Your browser does the conversion with your device's own processor, so your files stay with you. Once the page has loaded you could even switch off your internet connection.
Need more options? Open the full JSON to YAML tool →