JSON → YAML
Convert JSON to readable YAML with configurable indentation.
Private by design. Your input never leaves this browser. Conversions run locally on your device.
What this tool handles
- Indentation of 2 or 4 spaces, or 0 for a compact flow style.
- Keys can be sorted alphabetically instead of keeping their original order.
- Repeated structures are written out in full; no anchors or aliases are emitted.
- Strings that YAML would otherwise read as numbers, booleans or dates are quoted.
Example
JSON
{"name":"Ada","active":true,"ports":[80,443]}
YAML
name: Ada
active: true
ports:
- 80
- 443
Related tools
- YAML → JSON — Parse YAML and emit pretty-printed JSON.
- Convert any format — Pick an input format and an output format and convert between any pair.
- JSON → TOML — Convert a JSON object to TOML.
- TOML → JSON — Parse TOML configuration into JSON.
- JSON → CSV — Turn an array of objects into a CSV table.
- CSV → JSON — Parse CSV or TSV into JSON, with delimiter detection and optional type coercion.