YAML → JSON
Convert YAML configs to JSON
No watermarkFree & unlimited
Mode
Input (YAML)
Output (JSON)
All processing happens in your browser. No data is sent to any server.
About this tool
- 1
Paste or upload YAML
Enter your YAML content in the input area or upload a .yml / .yaml file.
- 2
Choose JSON formatting
Select indentation level (2 or 4 spaces) and whether to sort keys alphabetically.
- 3
Verify the output
Review the JSON output to make sure anchors, aliases, and multi-line strings converted correctly.
- 4
Export
Copy the JSON result or download it as a .json file.
- YAML anchors (&) and aliases (*) are fully resolved in the JSON output.
- Multi-line strings using | (literal) and > (folded) are preserved as single JSON strings with appropriate line breaks.
- Be careful with unquoted values like yes, no, on, off - YAML interprets these as booleans.
- Ensure consistent indentation in your YAML; mixing tabs and spaces will cause parsing errors.
- Full YAML 1.2 specification support
- Resolves anchors, aliases, and merge keys
- Handles multi-document YAML files (separated by ---)
- Detects and reports YAML syntax errors with line numbers
- Pretty-printed JSON output with configurable indentation
- Convert Docker Compose or Kubernetes YAML configs into JSON for programmatic manipulation
- Transform CI/CD pipeline configs (GitHub Actions, GitLab CI) to JSON for validation tools
- Convert YAML API specs (OpenAPI/Swagger) to JSON for documentation generators
- Migrate YAML-based configuration files to JSON format
Yes. Files with multiple documents separated by --- are converted to a JSON array where each element is one document.
Dates, booleans (yes/no/true/false), nulls (~), and numbers are converted to their JSON equivalents automatically.
Comments are stripped during conversion since JSON does not support comments.