Skip to content

Developer tools

YAML to JSON Converter (and JSON to YAML)

Convert config files between YAML and JSON: Docker Compose, Kubernetes manifests, GitHub Actions, OpenAPI specs and more.


            
        

How to use the YAML to JSON Converter (and JSON to YAML)

  1. 1

    Choose YAML → JSON or JSON → YAML.

  2. 2

    Paste your file; the result updates as you type, and errors show the line.

  3. 3

    Copy the result or download it.

Frequently asked questions

Why does my YAML fail to convert?

Usually indentation (YAML needs spaces, not tabs), a missing space after a colon, or an unquoted value containing ": ". The error shows the line.

Are comments kept?

No. JSON has no comments, so comments in YAML are dropped when converting.

Get new articles in your inbox

Practical tutorials and deep dives, about once a week. No spam, unsubscribe anytime.

Privacy policy

Add DEV Talk to your Home Screen

  1. 1 Tap the Share button in Safari's toolbar.
  2. 2 Scroll down and tap Add to Home Screen.
  3. 3 Tap Add. Open it from the Home Screen to read like an app and to turn on notifications with the bell.

We use cookies to improve your experience and analyze traffic. By continuing, you agree to our Privacy Policy.