JSON to YAML

Convert JSON to YAML 1.2 in your browser. Preserves types, arrays, and nested objects.

YAML is the configuration format of choice for Kubernetes, Docker Compose, GitHub Actions, and Ansible. This converter takes valid JSON and emits canonical YAML 1.2, preserving numbers, booleans, null, and nested structures.

Everything runs locally in your browser — your config never leaves the page. Large inputs are processed in the background so the UI stays responsive even on multi-MB pastes.

Example

Input

{ "name": "alice", "roles": ["admin", "dev"] }

Output

name: alice
roles:
  - admin
  - dev

Frequently asked questions

Which YAML version?

YAML 1.2 (the modern spec). 1.1 quirks like Yes/No booleans are not emitted, so the output is safe to use in Kubernetes, GitHub Actions, and other strict parsers.

Can I round-trip JSON ↔ YAML?

Yes, both directions preserve types. Use yaml-to-json for the reverse direction.

What about large files?

Large inputs (hundreds of KB and up) are processed in the background so the page stays responsive. A 50 MB input takes roughly a second, with the UI still interactive the whole time.

Related tools