JSON to YAML

Convert JSON into clean, readable YAML with configurable indent and key sorting.

100% private — everything runs in your browser

How to Use

  1. 1

    Paste JSON — a config file or API response both work.

  2. 2

    Choose the indent and whether keys should be sorted.

  3. 3

    Convert, then copy or download the YAML.

Examples

Config object

Input

{"name":"app","ports":[3000,3001]}

Output

name: app
ports:
  - 3000
  - 3001

Sorted keys

Input

{"b":2,"a":1}

Output

a: 1
b: 2

FAQ

Does it preserve key order?

Yes by default. Enable sorting only when you want a stable alphabetical order.

Are comments supported?

JSON has no comments, so the output contains none. Convert YAML with comments to JSON would drop them too.

Is my data uploaded?

No. The conversion happens entirely in your browser.

Related Tools