Skip to content
QuicklySorted

JSON to YAML Converter

Convert JSON to YAML for configuration files, Kubernetes, or CI pipelines. Words such as yes and no are quoted so they stay text. Nothing is uploaded.

0 characters · 2,000,000 remaining

0 characters

Paste YAML or JSON above and the result appears here, converted in your browser.

On this device

No signup. Your input is never uploaded.

How to use the JSON to YAML Converter

  1. Paste your JSON, or load the example.

  2. Choose the indentation, and whether to sort the keys.

  3. Copy the YAML, or download it as a .yaml file.

An example

A small JSON object

You enter

{"name":"Ada","roles":["admin","editor"],"active":true}

You get

name: Ada
roles:
  - admin
  - editor
active: true

How the JSON to YAML Converter works

The JSON is read with your browser's own parser and written as YAML with the indentation you pick. Words that older YAML readers would turn into true or false are quoted, so the meaning does not change.

Limits to know about

  • Up to 2 million characters of input are accepted.
  • The JSON has to be valid. A mistake is reported, not guessed at.
  • Keys keep their order unless you choose to sort them.

Questions about the JSON to YAML Converter

Paste the JSON and the YAML appears as you type. Objects become indented keys, and lists become lines that start with a dash.

Older YAML readers, which many tools still use, read words such as yes, no, on, and off as true and false. The converter puts them in quotes, so they stay text wherever the file is read.

JSON has no comments, so there are none to carry over. You can add comments to the YAML afterwards, on lines that start with #.

Last updated

Missing a tool?

Tell us what you wanted to do. Your ideas decide which tools we build next.

Suggest a tool on wisemensoft.com