YAML to JSON Converter
Convert YAML to JSON with your choice of indentation. Multi-document YAML becomes a JSON array.
Runs in your browserYAML → JSON
Loading tool…
Example
name: app ports: - 80 - 443 debug: false
{
"name": "app",
"ports": [
80,
443
],
"debug": false
}How to use the YAML to JSON Converter
- Paste or type your YAML into the input area, or open a file from your device.
- Adjust the options above the editor if the tool offers any.
- Review the JSON result, then copy it or download it as a file.
Privacy and limitations
- Your data is processed on your device and is not uploaded to any server.
Frequently asked questions
What happens to YAML anchors, aliases and dates?
Aliases are expanded into copies of the anchored value, and dates such as 2024-01-31 are kept as strings exactly as written, because JSON has no date type.
Related converters
YAML FormatterBeautify YAML with consistent indentation and optional key sorting. Validates syntax and supports multi-document files.YAML to XML ConverterConvert YAML to well-formed XML with a configurable root element. Keys prefixed with @_ become attributes.JSON to YAML ConverterConvert JSON to clean, readable YAML for configuration files such as Kubernetes or CI pipelines.YAML to CSV ConverterConvert a YAML list of records into CSV. Nested maps are flattened into dotted column names.YAML to Properties ConverterConvert Spring Boot application.yml files to application.properties with dotted keys and [n] list indexes.Properties to YAML ConverterConvert Java .properties (e.g. Spring application.properties) into nested YAML, with escapes and continuation lines handled.Properties to JSON ConverterConvert Java .properties files to JSON, nesting dotted keys into objects and key[n] entries into arrays.JSON to Properties ConverterFlatten JSON into Java .properties key=value lines with correct escaping of special characters.