DataFmt

JSON to YAML

Convert JSON into more readable, hand-editable YAML.

Drag & drop a file here, or click to upload
Options:

About this tool

YAML dominates CI/CD, Kubernetes and Ansible configuration because it is closer to natural language than JSON, supports comments and uses indentation for hierarchy — much friendlier for humans to edit.

Built on the standard js-yaml library, our converter preserves strings, numbers, booleans, nulls, nested objects and arrays correctly, with options for indent width and line width.

How to use

  1. Paste JSON into the input.
  2. Choose indent (default 2 spaces) and line width.
  3. Click "Convert".
  4. Copy or download as .yaml.

Use cases

Notes

Frequently Asked Questions

Do value types change?
No. Numbers stay numbers, strings stay strings, booleans stay booleans.
Why are some strings quoted?
Strings such as `yes`, `on` or `1.0` would otherwise be parsed as booleans or numbers. We quote them to preserve string semantics.
Do you support multi-document YAML?
Output is a single document in this release. Separate documents with `---` manually if needed.