Skip to main content
NyankoTools

YAML ⇔ JSON Converter

Paste YAML to convert it to JSON, or paste JSON to convert it to YAML — useful when you want to inspect a Docker Compose, GitHub Actions, or Kubernetes manifest file in the other format. To further format or validate the resulting JSON, try the JSON Formatter as well.

🔒 Runs in your browser · Your data is never sent to a server

Notes

  • JSON has no comments, so YAML comments are lost during conversion.
  • Indentation is significant in YAML and tabs are not allowed. If an error appears, check that spaces are used consistently.

Glossary

YAML

A human-friendly data format that represents structure using indentation. It's widely used for config files such as Docker Compose, GitHub Actions, and Kubernetes manifests.

JSON

Short for JavaScript Object Notation, a text format for representing data as key-value pairs. It is widely used for APIs and configuration files.

Indentation error

YAML uses indentation depth to represent structure, so inconsistent spacing or a stray tab character will cause a syntax error.

FAQ

What happens to YAML comments when converting to JSON?

JSON has no comment syntax, so comments are lost. They will not come back when converting to YAML, so keep the original file.

How do I find indentation errors?

Indentation is significant in YAML and tabs are not allowed. If you get an error, check that spaces are used and list dashes line up.

Can I use it for Docker Compose or Kubernetes files?

Yes. It is handy for viewing configuration files such as Docker Compose, GitHub Actions workflows and Kubernetes manifests in another format.

Share this page

↑↓ Select Enter Open Esc Close