JSON to YAML Converter

JSON turned into YAML that is easy to read and edit by hand.

Reverse: YAML to JSON

Files never leave your device — everything runs in your browser

YAML is the language of configs: Docker Compose, Kubernetes manifests, GitHub Actions and Ansible all use it. It holds the same data as JSON, without braces and quotes — nesting is shown by indentation. The converter turns any JSON into such YAML: objects become key: value pairs, arrays become lists with dashes.

Strings are quoted only where YAML needs it — for example yes, no, or a value that looks like a date — so the config reads cleanly and does not change meaning. Integers longer than 15 digits are written in full; JavaScript would round them.

Choose a 2- or 4-space indent; Kubernetes and Compose usually use 2. The result can be copied or downloaded as a .yaml file.

Nothing is uploaded: parsing and conversion run inside your browser, so API responses, CRM exports and files with personal data stay on your device.

Why it is safe for configs

How to convert JSON to YAML in 3 steps

  1. 1

    Load the JSON

    A file, pasted text or the Sample.

  2. 2

    Pick the indent

    2 spaces is the usual choice for configs.

  3. 3

    Download the YAML

    Or copy it from the preview.

Frequently asked questions

Load the JSON on this page and the YAML appears immediately.
It holds the same data; YAML is simply easier to read and allows comments. Any JSON can be written as YAML and back without loss.
So YAML does not read them as something else: unquoted, yes becomes true and 1.10 becomes the number 1.1.
YAML to JSON does it, and handles several documents in one file.

Related tools