Skip to content

Convert JSON to YAML

Converts a JSON file or text into YAML with two-space indentation.

It works in your browser. We do not store or send anything you type.Free · No sign-up required

Workspace · Convert JSON to YAML

Runs in your browser · 100% local
Cargando herramienta…
Files are processed in your browser; if you are signed in with history enabled, text results appear in your history.
Instructions

How to use it

01

Upload a .json file or paste the JSON into the editor.

02

The tool validates the JSON and converts it to YAML with a two-space indentation.

03

Check the result and download the .yaml file.

Examples

Examples

Docker Configuration

Converts a JSON configuration into human-readable YAML.

CI workflow

Convert a JSON object to YAML for a GitHub Actions file.

Reference guide

What you need to know

The JSON is validated before being converted. If there is a syntax error, the approximate position is indicated. The generated YAML does not use anchored references and preserves the data types (numbers, booleans, nulls and strings).

Frequently asked questions

Frequently Asked Questions

JSON does not support comments, so there is nothing to preserve. The generated YAML does not add any comments either.

Related tools

Other tools that can help with similar tasks.

More at Data→
Convert JSON to YAML online · ByTooly