JSON to YAML

Convert JSON into clean, readable YAML as you type, ready for config files such as Docker Compose, Kubernetes or GitHub Actions.

Your files stay on your device. Nothing is uploaded.

JSON to YAML

Converts as you type · files up to 20 MB

Step 1: Paste or open your JSON

Step 2: Options

YAML indent

Step 3: Copy or download

How to convert JSON to YAML

  1. Paste or open your JSON

    Paste JSON into the first box, or click Open a file. The conversion runs as you type.

  2. Choose the options

    Choose a 2 or 4 space indent.

  3. Copy or download

    Click Copy YAML, or Download .yaml for a file.

About this tool

Text that stays text

Some text looks like another type in YAML: "007" would become the number 7 and "true" a boolean. The converter puts quotes around such values ('007', 'true'), so the YAML means exactly what the JSON did.

Readable output

Long lines are kept whole instead of being folded, lists are written with dashes, and nested objects are indented, which is how most YAML config files look.

Exact numbers

JSON numbers are read exactly. Numbers with more than 15 digits, such as long IDs, are written as text so no digit changes.

Privacy

This tool runs in your browser, on your own device. Your files and text are not uploaded to our server and we cannot see them. When you close or reload this tab, they are cleared, along with the results.

Frequently asked questions

My JSON shows an error

The message gives the line and column of the first problem, such as a missing quote or comma.

Can I convert YAML back to JSON?

Yes, with YAML to JSON.

Is my data sent anywhere?

No. The conversion runs in your browser.

Is there a size limit?

Files up to 20 MB.