YAML to JSON

NEW

Convert YAML to JSON format

FreeNo sign-upDeveloper Tools →

YAML to JSON converts between YAML and JSON in both directions, using the js-yaml library. Paste YAML to get JSON, or press Swap to turn JSON into YAML. Conversion is live, and parse errors are shown with their message.

YAML relies on indentation and has some surprising rules, such as unquoted yes and no becoming booleans in older parsers. Seeing the JSON equivalent is the fastest way to confirm what a YAML file actually means to a program.

Advertisement

How to use YAML to JSON

1

Paste YAML or JSON

Use Swap to change direction.

2

Review the output

It updates as you type.

3

Copy

Use the copy button.

Use Cases

  • Checking a Kubernetes or Docker Compose file
  • Converting an OpenAPI spec between formats
  • Debugging a CI configuration

Frequently Asked Questions