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
- Paste JSON into the left editor.
- The YAML appears on the right and updates as you edit.
- 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
- JSON Formatter
- JSON Validator
- JSON Minifier
- JSON Repair
- JSON Diff
- JSON Schema Validator
- JSON to YAML
- YAML to JSON
- JSON to CSV
- CSV to JSON
- JSON to XML
- XML to JSON
- YAML Formatter
- XML Formatter
- JSONL Validator
- JSON to TOON
- LLM Token Counter
- LLM Token Optimizer
- JSON to TypeScript
- JSON Schema Generator
- LLM Tool Schema Generator