Convert YAML configuration files and data to JSON format. Supports the full YAML 1.2 specification including nested objects, arrays, multi-line strings, YAML anchors and aliases, and type coercion. Useful for adapting Kubernetes configs, Docker Compose files, CI/CD configurations, and other YAML-based tools to JSON-based APIs or databases.
Paste your YAML
Paste any valid YAML content — configuration files, data definitions, Kubernetes manifests, GitHub Actions workflows, or custom data files.
Click Convert
The js-yaml library parses your YAML with full 1.2 spec support. Anchors and aliases are resolved, multi-line strings are concatenated, and types are inferred (numbers, booleans, null).
Copy or download the JSON
The output is formatted JSON with 2-space indentation. Copy to clipboard or download as a .json file.
Validate the output
Use our JSON Formatter to double-check the structure matches what you expected, especially for complex YAML with anchors or merge keys.