JSON to YAML Converter

Convert JSON to YAML in your browser, with two-space indentation for nested objects and lists. Risky strings (colons, numbers-as-text) are quoted automatically so the YAML stays valid.

YAML

JSON to YAML

YAML is a human-friendly data format often used for configuration. This tool parses your JSON and re-emits it as YAML, using two-space indentation for nested objects and - for list items. Strings that could be misread (such as those containing colons or looking like numbers) are automatically quoted so the YAML stays valid.

Conversion happens in your browser, nothing is uploaded.

What this does

This converter turns JSON into YAML, with two-space indentation for nested objects and lists, quoting risky strings so the YAML stays valid.

How to use it

  1. Paste your JSON.
  2. Convert it.
  3. Read the YAML output.
  4. Copy the result.

How it works

Nested objects use two-space indentation and list items start with a dash. Strings that could be misread (with colons, leading spaces, or that look like numbers or booleans) are quoted automatically.

Example

{"name":"A","tags":["x","y"]} becomes a name line and a two-item tags list in YAML.

Sources & methodology

Last updated .

Frequently asked questions

How are nested objects and lists formatted?

Nested objects use two-space indentation and list items are prefixed with a dash, matching common YAML style.

When are strings quoted?

Strings that could be misread (those with colons, leading or trailing spaces, or that look like numbers or booleans) are quoted so the YAML parses back correctly.

Is my JSON uploaded?

No. Parsing and conversion happen entirely in your browser; nothing is sent anywhere.