loot.tools

JSON to YAML

Convert JSON to YAML or YAML to JSON with one click. Pick your direction, paste the input, and get clean output with configurable indentation. Handles nested objects, arrays, and all standard data types.

Convert between JSON and YAML. Pick a direction, paste your data, and get the result instantly.

Input JSON
Output YAML

How it works

Pick a direction (JSON to YAML or YAML to JSON), paste your data, and the converted output appears instantly. The converter preserves your data structure including nested objects, arrays, nulls, booleans, and numbers. Choose 2-space or 4-space indentation for the output.

When you'd use this

Switching a project's config from JSON to YAML (or back). Converting package.json settings to a YAML CI config. Translating between formats when different tools in your pipeline expect different inputs. Kubernetes and Docker Compose use YAML, but many APIs return JSON. This bridges the gap.

JSON vs YAML

JSON is strict: double-quoted keys, no comments, explicit braces and brackets. YAML is more readable: no quotes needed for most strings, indentation defines structure, and it supports comments. JSON is better for machine-to-machine communication. YAML is better for config files humans edit by hand. Both represent the same data structures, which is why conversion between them is lossless.

© 2026 loot.toolsYour data stays in your browser.