JSON to YAML Converter

Type JSON on the left, get YAML on the right.

This converter turns JSON into block-style YAML as you type. YAML is the format of choice for Kubernetes manifests, Docker Compose files, GitHub Actions workflows and OpenAPI definitions, while most APIs and tools emit JSON, so moving between the two is a daily task.

The output keeps your key order, uses two-space indentation and quotes strings only where YAML requires it, for example values that would otherwise be read as a number or a boolean.

How to use it

  1. Paste JSON into the left editor.
  2. The YAML appears on the right and updates as you edit.
  3. Copy or download the YAML, or press Apply to continue editing it.

Questions

Is anything lost when converting JSON to YAML?

No. YAML is a superset of JSON's data model, so objects, arrays, strings, numbers, booleans and null all convert without loss.

Why are some strings quoted in the output?

Strings such as "yes", "123" or "null" would change type if written bare, so they are quoted to keep them as strings.

Can I convert back?

Yes. Use the YAML to JSON converter, or press Apply and choose JSON as the target.

All tools