YAML → CSV Converter
Convert YAML to CSV locally. The root must be an array of objects; comments will be stripped.
Required YAML structure
CSV is a flat, tabular format — it cannot represent nested objects or arrays of mixed types. The converter expects your YAML root to be a sequence of mappings where every mapping has the same set of keys. Those keys become the CSV column headers.
Input
- id: 1 name: Alice email: [email protected] active: true - id: 2 name: Bob email: [email protected] active: false
Output
id,name,email,active 1,Alice,[email protected],true 2,Bob,[email protected],false
Type handling
| YAML value | CSV cell | Notes |
|---|---|---|
| String | value | Unquoted unless it contains comma or newline |
| Integer | 42 | Rendered as-is |
| Float | 3.14 | Rendered as-is |
| Boolean true | true | Lowercase string |
| Boolean false | false | Lowercase string |
| null / ~ | (empty cell) | Rendered as empty string |
| Nested mapping | (serialised JSON) | Nested objects are stringified — flatten first |
| Sequence | (serialised JSON) | Arrays are stringified — flatten first |
Warning: Nested objects and arrays inside rows will be serialised to JSON strings in the CSV cell. Flatten your YAML before converting if you need clean tabular output.
Frequently Asked Questions
Your files stay on your computer. Dad promised.