Skip to content
My Tiny Utils

Search tools

Type to find a tool, then press Enter to open it.

JSON to YAML

Convert JSON to clean, readable YAML instantly. Preserves nesting, quotes strings only when needed, and handles edge cases safely.

Processed locally in your browser — nothing is uploaded.

0 characters

YAML

Output appears here…

About JSON to YAML

Convert JSON documents to YAML — useful for Kubernetes manifests, CI configs, and any tool that prefers YAML. Strings are quoted only when YAML would otherwise misinterpret them (like 'yes', '1.0', or strings with colons), keeping output clean.

Common uses

  • Turn a JSON config into a YAML one (docker-compose, GitHub Actions, k8s)
  • Make deeply nested JSON easier for humans to read

Example

Input

{"server": {"port": 8080, "hosts": ["a", "b"]}}

Output

server:
  port: 8080
  hosts:
    - a
    - b