# JSON to YAML Converter

> Free JSON to YAML converter. Turn JSON into clean YAML for configs and manifests, with correct nesting, quoting and indentation. Client-side.

Convert JSON documents to clean YAML for configs, CI pipelines and Kubernetes manifests. Handles nested objects, arrays, strings and numbers correctly.

*Interactive tool: enter your values at https://toollantern.win/json-to-yaml-converter/ and results update instantly in your browser.*

## What the tool does

YAML is the human-friendly config format behind Docker Compose, GitHub Actions and Kubernetes. Paste JSON and get equivalent YAML with proper two-space indentation, quoted strings where needed, and block-style arrays.

## Worked example

{"name": "Ada", "tags": ["a", "b"]} becomes:

name: Ada
tags:
  - a
  - b

## Notes

JSON is technically valid YAML, so any JSON parses as YAML too. Conversion goes one way here; the result drops JSON-only quirks like trailing commas. Related tool: the [JSON Formatter & Validator](/json-formatter-validator/) for checking JSON first.

## Frequently asked questions
### Is YAML better than JSON for configs?

For hand-edited configs, usually yes: comments, no mandatory quotes or commas, and cleaner nesting. For machine-to-machine data, JSON's strictness wins.

### Will my data survive the conversion?

Yes for standard JSON: objects, arrays, strings, numbers, booleans and null map directly to YAML equivalents.

### Why does YAML care about indentation?

Indentation defines structure in YAML, like Python. This tool emits consistent two-space indentation so the output parses correctly.

### Is my JSON sent to a server?

No. Conversion happens locally in your browser, so config data with secrets stays private.

---
Interactive version: https://toollantern.win/json-to-yaml-converter/
