JSON to YAML Converter

Convert JSON to YAML online for Kubernetes manifests, Docker Compose files, CI pipelines and other configuration. Paste valid JSON and copy the YAML.

JSON input

1

Result

Waiting for input

About this tool

YAML describes the same data as JSON using indentation instead of braces, and it allows comments, which is why it is popular for configuration. Values such as yes, no or on are quoted so that older YAML parsers do not read them as booleans.

JSON to YAML example

YAML describes the same data as JSON using indentation instead of braces and brackets.

{"name":"app","ports":[80,443],"debug":false}

name: app
ports:
  - 80
  - 443
debug: false

Where YAML is used

YAML is the usual format for Kubernetes manifests, Docker Compose files, GitHub Actions workflows and OpenAPI specifications. It is easier to read and allows comments, while JSON is stricter and more widely accepted by APIs.

Notes on the output

Values such as yes, no and on are quoted so older YAML parsers do not read them as booleans. JSON has no comments, so none appear in the output. To go the other way, use the YAML to JSON converter.

How to use it

  1. Paste valid JSON.
  2. The YAML appears on the right.
  3. Copy it or download it as a .yaml file.

Frequently asked questions

What is the difference between JSON and YAML?

They represent the same data types. YAML is whitespace-based and supports comments; JSON is stricter and more widely supported by APIs.

Are special values quoted safely?

Yes. Values that could be misread, such as yes, no or numeric-looking text, are quoted when needed.

Can I convert YAML to JSON?

Yes, use the YAML to JSON converter.

More JSON tools

JSON Checker – Validate JSON OnlinePaste your JSON into this free JSON checker to validate it instantly. Any error is pinpointed by line and column, so you can fix it in seconds.Online JSON Editor with Find and ReplaceEdit JSON online with live validation, find and replace (including regex), key sorting and undo. Everything runs in your browser.JSON Formatter and BeautifierFormat and pretty print JSON online. Turn minified or messy JSON into readable, indented, syntax-highlighted text with 2 spaces, 4 spaces or tabs.JSON Minifier – Compress JSON OnlineMinify JSON online by removing every unnecessary space and line break. See the size before and after, then copy or download the result.JSON to CSV ConverterConvert JSON to CSV online. Paste an array of JSON objects and get a CSV ready for Excel, Google Sheets or a database, with nested objects flattened into columns.CSV to JSON ConverterConvert CSV to JSON online. The first row becomes the keys, and each following row becomes a JSON object. Dotted headers are rebuilt into nested objects.YAML to JSON ConverterConvert YAML to JSON online. Paste YAML from a config file and get valid, formatted JSON, with syntax errors explained.JSON Diff Checker – Compare JSON OnlineCompare two JSON documents online and see exactly what was added, removed or changed, listed by path. Click any difference to jump to it.JSON Tree Viewer – Explore JSON VisuallyView JSON as a collapsible tree online. Expand only the branches you need instead of scrolling through long, deeply nested text.

Advanced JSON tools

Need more than the basics? Our developer tools go further.