JSON to YAML
Convert JSON into clean, readable YAML for Kubernetes, CI configs and OpenAPI specs - instantly and privately in your browser.
From JSON to readable YAML
JSON is perfect for machines but heavy on punctuation for humans - every brace, bracket, quote and comma has to line up. YAML strips most of that away and leans on indentation instead, which is why it dominates infrastructure config. Paste JSON above and it is converted to YAML as you type, ready to drop into a manifest or pipeline.
Options that matter
- Indent - 2 spaces (the standard) or 4 for deeply nested files.
- Style - block style gives classic indented YAML; flow style keeps short collections inline, JSON-like, on one line.
- Quote strings - leave YAML to quote only where needed, or force single or double quotes around every string for consistency.
A quick example: the object name maps to name: web, the array
ports becomes a sequence with each port on its own - line, and
numbers like 3 stay bare so they read as numbers, not strings.
Valid JSON in, valid YAML out
The converter parses your input with the browser JSON engine first, so if there is a stray trailing comma or a single quote where a double belongs, you get the exact line and column of the problem rather than surprising YAML. Fix the flagged spot and the output appears instantly.
Going the other way? Use the YAML to JSON converter. To clean up the source first, try the JSON formatter, or convert a legacy feed with the XML to JSON converter.