Toolbox / JSON to YAML Runs in your browser中文
Converter

JSON to YAML

Parse and convert JSON to YAML locally, with nested data and validation. JSON5 is also supported.

Ctrl / ⌘ + Enter Run

Ready when you are

01

Add your contentPaste text or try a sample

02

Choose an actionClear options. Predictable results.

03

Take it with youCopy, download and carry on

Less switching. More focus.Functional build · Validation in progress

Using this tool

Convert JSON or JSON5 objects into readable YAML configuration.

Actions: Convert

Example

This JSON5 example uses single quotes, unquoted keys and trailing commas; output is YAML with two-space indentation.

Example action and settings

Action: Convert
Indent spaces: 2

Input / action

{name:'Ada', items:[1,2,],}

Result / expected behavior

name: Ada
items:
  - 1
  - 2

Available options: Indent spaces

Scope and limitations

  • JSON5 comments are not preserved; non-finite numbers and unsafe integers are rejected.

Common mistakes

  • Accepting JSON5 does not make the output JSON; save the generated result as YAML.

Related tools

YAML to JSON JSON to TOML

Privacy and browser support

Input is processed in this browser. Do not use real keys or active sensitive credentials as demonstration data. Device features require browser support and your permission.