YAML to JSON | How to use and interpret results
Convert a basic indentation-based YAML draft into JSON with a small built-in parser. It is not a general loader implementing the full YAML 1.2.2 specification.
- Runs in your browser
- Nothing is uploaded
- No signup; device limits apply
Loading the tool. If it does not appear, reload this page.
How to use this tool
Start with simple key:value mappings or lists and inspect types and nesting. Validate anchors, aliases, block scalars and complex flow syntax with a complete YAML implementation.
Results and examples
name: Alice and enabled: true produce an object with a string name and Boolean enabled. Compare the output with the source and check whether date-looking values remain strings.
Worked example
name: Alice and enabled: true produce an object with a string name and Boolean enabled. Compare the output with the source and check whether date-looking values remain strings.
Limitations
- Every YAML tag, alias, schema and multi-document stream is not supported.
- Complex syntax may silently become different text, so do not apply production configuration unchecked.
Fields
| Field | Guidance and constraints |
|---|---|
| YAML | Check the unit and format displayed beside this field. |
| JSON | Check the unit and format displayed beside this field. |
Data handling
Processing stays in the current browser tab; the site does not upload tool input for the calculation itself.
Sources
Frequently asked questions
Which JSON type comes from enabled: true?
name: Alice and enabled: true produce an object with a string name and Boolean enabled. Compare the output with the source and check whether date-looking values remain strings.
Can every YAML file be converted?
Every YAML tag, alias, schema and multi-document stream is not supported. Complex syntax may silently become different text, so do not apply production configuration unchecked.