JSON โ‡„ YAML Converter

Convert JSON to YAML or YAML to JSON for config files (Docker, Kubernetes, CI). Works on your device.

Also called: YAML to JSON, JSON to YAML.

FreeNo sign-upRuns in your browser
CONVERTERS

JSON โ‡„ YAML Converter

Convert JSON to YAML or YAML to JSON for config files (Docker, Kubernetes, CI). Works on your device.

Runs locally in your browser
Ready. Fill in the fields above, then press Run tool.
Privacy note: this tool runs in your browser, so the text you enter stays on your device.

Find a tool

Loading toolsโ€ฆ

Watch: how to use the JSON โ‡„ YAML Converter (14 seconds)

Recorded on a phone, steps written on screen, no sound.

About the JSON โ‡„ YAML Converter

Convert JSON to YAML or YAML to JSON for config files (Docker Compose, Kubernetes, GitHub Actions), with 2- or 4-space indentation.

How to use the JSON โ‡„ YAML Converter

  1. Enter your textType or paste your text.
  2. Pick the optionsdirection and indent (the defaults suit most uses).
  3. Press Run toolThe result appears right under the button.
  4. Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.

This tool works inside your browser: what you enter stays on your device.

Example

A sample input and the result the JSON โ‡„ YAML Converter gives for it (produced by the tool itself, not typed by hand).

Direction
JSON โ†’ YAML
Input
{"name":"app","ports":[80,443],"debug":false}
Indent
2 spaces

Result:

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

Good to know

What you need
You type or choose: Input
Where it runs
In your browser, on your device.
Cost
Free, no sign-up.

Questions

Does it keep comments?

No, JSON has no comments, so YAML comments are lost in the conversion.

Why did my YAML fail?

Usually tabs instead of spaces, or wrong indentation.

More tools in Excel & Data

See all Excel & Data tools