← All tools/Minifiers/Code/JSON to YAML Converter

JSON to YAML Converter

Paste JSON in, get clean YAML out — mappings as key: value lines, lists as - item lines, indented by two spaces. Nothing leaves your browser.

Paste or type JSON here. The YAML updates as you type.

YAML output

YAML ready

4 keys converted

How it works

Parse the JSON into objects, arrays and scalars, then emit YAML
Mappings as “key: value” lines, sequences as “- item” lines, nested values indented by 2 spaces

{"name": "Asha", "age": 30} becomes two lines: name: Asha and age: 30. A list such as "tags": ["baking", "cycling"] becomes tags: followed by - baking and - cycling on their own lines.

Frequently asked questions

What JSON can I paste?

Any valid JSON: objects, arrays, strings, numbers, true/false and null. If the JSON has a mistake, the page tells you which line the error is on.

How are nested values shown?

Nested objects and lists are indented by two spaces per level. A list inside an object sits under its key, with each item on a line starting with a dash.

Are strings quoted in the YAML?

Only when they need it: empty strings, strings that look like numbers or true/false/null, and strings with characters YAML would misread, such as a colon or a leading dash.

Is my data uploaded anywhere?

No. The conversion runs entirely in your browser — paste in API keys or private config and nothing leaves the page.

More tools

Tell us what you think

Loving this tool, or stuck on something? Tell us — it takes a minute.

We’ll only use your name and email to reply if needed. The tool and page are filled in for you.