Uttir

JSON to YAML Converter

Convert JSON to clean YAML and decode YAML back to JSON. Round-trips common JSON shapes.

JSON to YAML Converter — YAML is a human-friendly data format that you will encounter in Kubernetes manifests, GitHub Actions workflows, Ansible playbooks, Docker Compose files, and most modern configuration. This tool converts JSON to YAML and back, so you can paste JSON from an API response and get a YAML config ready to drop into a repo.

Conversion runs locally in your browser. No data is uploaded.

What is json to yaml converter?

YAML is a human-friendly data format that you will encounter in Kubernetes manifests, GitHub Actions workflows, Ansible playbooks, Docker Compose files, and most modern configuration. This tool converts JSON to YAML and back, so you can paste JSON from an API response and get a YAML config ready to drop into a repo.

Both directions preserve the data: objects map to mappings, arrays to sequences, and the common scalar types round-trip cleanly. Multi-line strings, anchors, and flow style are not supported — keep your input to the everyday JSON subset.

How to use it

  1. Choose direction

    Toggle between JSON → YAML and YAML → JSON.

  2. Paste your input

    The output updates as you type or paste.

  3. Copy the result

    One click to copy the converted text.

Examples

Service manifest

A common Kubernetes-style service definition.

Result: apiVersion: v1 kind: Service metadata: name: web spec: ports: - port: 80 targetPort: 8080

Decoded back to JSON

Round-trip is lossless for plain JSON.

Result: {"apiVersion":"v1","kind":"Service",...}

Frequently asked questions

Related tools