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
-
Choose direction
Toggle between JSON → YAML and YAML → JSON.
-
Paste your input
The output updates as you type or paste.
-
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
JSON Formatter
Format, beautify, and validate JSON with adjustable indentation — instantly in your browser.
CSV to JSON Converter
Convert CSV to JSON and JSON to CSV instantly, right in your browser.
SQL Formatter
Format and beautify SQL queries for MySQL, PostgreSQL, SQLite, and more — with optional keyword uppercase and tab indentation.