YAML to JSON Converter
The YAML to JSON converter parses common YAML — nested mappings, sequences, quoted and plain scalars, block scalars, comments and multiple documents — and emits the equivalent JSON. It covers the subset that configuration files actually use.
Your result will appear here.
Not sure where to start? Use Load example.
Results update automatically and are calculated on your device. Nothing you type is sent to a server.
Runs in your browser. Processing happens entirely in your browser. Nothing you enter is sent to Delimiter.live.
How to use the YAML to JSON Converter
- Paste your YAML file, or load a .yml file from your device.
- Read the JSON result; any parse error names the line that caused it.
- Copy or download the JSON.
Example
name: Ada tags: - a - b
{
"name": "Ada",
"tags": ["a", "b"]
}
Common use cases
- Inspecting a CI, Kubernetes or Docker Compose file as JSON.
- Feeding a YAML configuration into a tool that only reads JSON.
- Checking that hand-edited YAML actually parses to the structure you intended.
Limitations and things to watch for
- The parser covers the YAML subset used by real configuration files: nested mappings and sequences, inline flow collections, single- and double-quoted scalars, literal and folded block scalars, comments, document separators and the usual scalar types. It deliberately does not implement anchors and aliases, custom tags, complex keys or merge keys — if your file uses those, the parser reports an error rather than guessing.
- Duplicate keys in the same mapping keep the last value, matching how most YAML loaders behave.
- Tabs are not valid for indentation in YAML and are reported as an error, which is usually the real bug in a file that will not parse.