# Convert JSON to YAML

> Convert JSON to YAML online. Free JSON to YAML converter with a worked example and a live editor — runs entirely in your browser.

YAML is easier to read and to hand-edit than JSON, which is why it dominates config files for tools like Docker Compose, Kubernetes, and CI pipelines. This converter turns a JSON object into clean, indentation-based YAML.

## Example: JSON → YAML

Input:
```
{
  "name": "Devkult",
  "stars": 1280,
  "tags": ["tools", "dev"],
  "open_source": true
}
```

Output:
```
name: Devkult
stars: 1280
tags:
  - tools
  - dev
open_source: true

```

## How to convert JSON to YAML

1. Paste or type your JSON.
2. The converter parses it and re-serializes the same data as YAML.
3. Copy the YAML into your config file — keys map directly, arrays become dashed lists.

## FAQ

### Is YAML a superset of JSON?

Yes. Any valid JSON is also valid YAML, so the conversion is lossless. The converter simply rewrites it in YAML's more readable, indentation-based syntax.

### Is my JSON sent to a server?

No. Conversion happens entirely in your browser — nothing is uploaded.

## Related converters

- [YAML → JSON](https://www.devkult.com/convert/yaml-to-json.md)
- [JSON → CSV](https://www.devkult.com/convert/json-to-csv.md)
- [JSON → XML](https://www.devkult.com/convert/json-to-xml.md)

Open the interactive converter: https://www.devkult.com/convert/json-to-yaml