YAML to JSON
Convert YAML configuration to JSON format. Handles key-value pairs, nested objects, arrays, and common YAML types.
Click Convert or press Ctrl+Enter...
What is YAML to JSON Converter?
YAML to JSON is a developer tool that converts YAML (YAML Ain't Markup Language) data into JSON (JavaScript Object Notation) format. YAML is popular in DevOps config files (Docker Compose, Kubernetes manifests, GitHub Actions workflows), and sometimes you need the equivalent JSON for APIs, scripts, or tools that only accept JSON. This converter handles key-value pairs, nested maps, sequences (arrays), inline syntax, and common YAML scalar types like booleans, numbers, and null.
How to Use YAML to JSON Converter
- 1
Paste your YAML
Enter or paste YAML content into the left text area. Click Load Example for a sample.
- 2
Click Convert
Press the Convert button or Ctrl+Enter to transform YAML to JSON.
- 3
Review the JSON
The formatted JSON output appears in the right panel with proper indentation.
- 4
Copy the result
Click Copy to copy the JSON to your clipboard.
Features
- Converts YAML maps to JSON objects
- Converts YAML sequences to JSON arrays
- Handles nested structures with any depth
- Parses YAML booleans (true/false/yes/no), numbers, and null
- Supports inline arrays [a, b] and objects {a: b}
- Skips comments and blank lines
- Pretty-printed JSON output with 2-space indent
- 100% client-side — no data leaves your browser
Related Tools
JSON Formatter & Validator
Pretty-print and validate JSON with 2 / 4 space indentation.
JSON to CSV Converter
Convert JSON arrays to CSV format. Auto-detects columns, proper escaping, download as .csv.
CSV to JSON Converter
Convert CSV data to a JSON array of objects. Handles quoted fields and commas.
HTML Formatter & Minifier
Beautify messy HTML with proper indentation or minify it for production.
HTML Minifier
Minify HTML by stripping comments, collapsing whitespace. Shows size savings.
CSS Formatter & Minifier
Beautify CSS with proper indentation or minify it for production. Strips comments.