JSON to YAML | How to use and interpret results
Serialize JSON objects, arrays and scalar values into an indented YAML draft. The input is strict JSON and the output follows a small local emitter rather than every YAML feature.
- 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
Paste JSON and choose indentation width. Check quoting of date-like or numeric-looking strings with the destination YAML parser before using configuration output.
Results and examples
{"enabled":true,"name":"01"} distinguishes a Boolean enabled value from the string name. Parse the generated draft again to confirm that the intended types survive.
Worked example
{"enabled":true,"name":"01"} distinguishes a Boolean enabled value from the string name. Parse the generated draft again to confirm that the intended types survive.
Limitations
- Anchors, aliases, custom tags and comment recovery are unsupported.
- Identical type resolution under every YAML schema is not guaranteed.
Fields
| Field | Guidance and constraints |
|---|---|
| Indent spaces | Check the unit and format displayed beside this field. |
| JSON | Check the unit and format displayed beside this field. |
| YAML | 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
Are string 01 and number 1 distinguished?
{"enabled":true,"name":"01"} distinguishes a Boolean enabled value from the string name. Parse the generated draft again to confirm that the intended types survive.
Can original YAML comments be recovered?
Anchors, aliases, custom tags and comment recovery are unsupported. Identical type resolution under every YAML schema is not guaranteed.