JSON to YAML

Convert JSON to YAML

Turn JSON into clean YAML for Kubernetes manifests, CI pipelines or config files. Paste, convert, copy — all in your browser.

Open JSON to YAML → Free · No sign-up · Runs in your browser

How to use it

  1. Open Tools → Convert. JSON → YAML is pre-selected.
  2. Paste your JSON, or click Use editor JSON.
  3. Click Convert and copy the YAML output.

Example

JSON
{
  "id": 42,
  "name": "Ada Lovelace",
  "active": true,
  "roles": ["admin", "editor"],
  "address": { "city": "London", "zip": "N1 9GU" }
}
YAML
id: 42
name: "Ada Lovelace"
active: true
roles:
  - "admin"
  - "editor"
address:
  city: "London"
  zip: "N1 9GU"

Features

Nested structures

Objects and arrays become properly indented YAML maps and lists.

Other formats

Also convert JSON to XML, CSV or TOML, and CSV to JSON.

Open in editor

When converting to JSON, open the result in the editor to view it as a tree.

Private

Conversion happens locally, so config files with secrets stay on your machine.

Frequently asked questions

Are strings quoted in the YAML output?

Yes. String values are double-quoted, which avoids YAML surprises such as yes/no being read as booleans.

Can I convert YAML back to JSON?

Not yet. The converter accepts JSON and CSV as input.

Which other formats are supported?

JSON can be converted to YAML, XML, CSV and TOML. CSV can be converted to JSON.

Is it free?

Yes, free with no sign-up.