Boneyard Tools

JSON to YAML Converter

Paste JSON to get YAML instantly. Works with objects, arrays and deeply nested data, with clean 2-space indentation. Your data stays in your browser.

How to convert JSON to YAML

  1. Paste or type your JSON into the input box.
  2. Read the formatted YAML in the output box as you type.
  3. Copy the YAML or download it as a .yaml file.

Examples

Object with nested data

{"name":"Ada","roles":["admin","dev"]}
name: Ada
roles:
  - admin
  - dev

Frequently asked questions

What is the difference between JSON and YAML?

Both describe the same data structures, but YAML uses indentation instead of braces and brackets, which many people find easier to read and edit. JSON is stricter and more common in APIs.

When should I use YAML instead of JSON?

YAML is popular for config files, like Docker Compose, Kubernetes and CI pipelines, because it is readable and supports comments. JSON is better for data exchanged between programs.

Are comments preserved in the conversion?

No. JSON has no comments to begin with, so the YAML output contains only your data. You can add comments to the YAML yourself afterward.

Is my data uploaded anywhere?

No. The conversion runs entirely in your browser, so your JSON never leaves your device.

How is the YAML indented?

The output uses 2-space indentation and does not wrap long lines, so the result is tidy and predictable for config files.

Does it handle nested objects and arrays?

Yes. Nested objects and arrays are converted to indented YAML maps and sequences, no matter how deep they go.

Related tools