YAML → JSON Converter
Convert YAML to formatted JSON — parses all YAML types, runs in your browser.
About this tool
The YAML to JSON converter parses YAML input and outputs equivalent formatted JSON. Paste a Kubernetes manifest, Docker Compose file, GitHub Actions workflow, or any YAML config and get back valid JSON.
YAML supports features not available in JSON (comments, anchors, aliases, multi-line strings), which are interpreted by the parser and converted to their JSON equivalents. Comments are stripped, anchors are expanded, and multi-line strings are preserved as single JSON strings.
Frequently asked questions
What happens to YAML comments during conversion?
What happens to YAML anchors and aliases?
Related tools
JSON → YAML Converter
Convert JSON to YAML format instantly — using js-yaml, entirely in your browser.
JSON Formatter / Validator
Beautify, validate, and explore JSON with error line numbers and collapsible nodes.
CSV → JSON Converter
Convert CSV data to a JSON array of objects with automatic header detection.