JSON to YAML
Convert JSON to YAML and back with a single paste — handy for config files, Docker, Kubernetes and CI/CD.
How to convert JSON to YAML
- Pick a direction: "JSON → YAML" or "YAML → JSON".
- Paste your content on the left and the result appears on the right.
- Use the copy button to grab the result. If the content has a syntax error, the tool points at the line and column.
Frequently asked questions
YAML reads words like y, n, yes, no, on and off as true/false values. The tool adds quotes so they stay plain text and don't change meaning when read back.
No. JSON has no place for comments, so they are dropped when converting from YAML to JSON.
Not yet. The tool converts one document at a time, so paste each part separately.
No. The content is processed right on your device.
It's completely free, no account needed.
Related tools
JSON to TOMLConvert between JSON and TOMLJSON to CSVConvert between JSON and CSV tablesJSON to XMLConvert JSON to indented XMLJSON to TypeScriptGenerate TypeScript interfaces from sample JSONJSON to JSON SchemaGenerate a JSON Schema from a JSON sampleJSON Schema validatorCheck whether JSON data matches a JSON SchemaJSON to ZodGenerate a Zod schema from a JSON sampleJSON to Go structGenerate Go structs from a JSON sampleJSON to Python dataclassGenerate dataclasses or Pydantic models from JSON