YAML to CSV Converter
Paste a YAML array of objects and get a CSV file — nested keys are flattened with dot notation, and you can choose delimiter, quoting mode, and whether to include a header row.
Last updated: May 27, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is YAML to CSV Converter?
YAML is a popular format for configuration and data fixtures, but spreadsheet tools and data pipelines expect CSV. Converting a YAML array to CSV by hand — writing each key as a column header, flattening nested objects, and handling quoting — is mechanical work.
This tool reads a YAML array of objects, flattens each item (nested keys become `parent.child` column names), and emits a CSV with optional header row and configurable delimiter. Arrays within objects are serialized as pipe-separated strings so they fit in a single cell.
How to Use YAML to CSV Converter
Paste a YAML array of objects into the input panel.
Choose the output delimiter: comma, semicolon, or tab.
Toggle quoting mode and header row.
Copy or download the CSV.
Common Use Cases
- Exporting YAML fixture data for import into a spreadsheet or database.
- Converting a YAML configuration listing to a tabular report.
- Turning a YAML data dump into a CSV for analysis in Excel or Google Sheets.
- Generating TSV output from YAML for tab-separated pipelines.
Example Input and Output
A YAML array of objects becomes a CSV with a header row.
- id: 1
name: Alice
active: true
- id: 2
name: Bob
active: falseid,name,active
1,Alice,true
2,Bob,falsePrivacy
All YAML parsing and CSV generation happen in your browser. No content is sent to a server.
Tab output
Select the Tab delimiter to produce TSV output. The download button will save it with a .tsv extension.
Frequently Asked Questions
What happens to nested objects?
Nested mappings are flattened with dot-notation keys. For example, address.city becomes a column named "address.city".
How are arrays within objects handled?
Array values inside an object are joined with " | " as a single cell value. Complex nested arrays are serialized as JSON.
Can I use this with a single YAML object (not an array)?
Yes — a single mapping produces one data row. If the mapping contains a key whose value is an array of objects, that array is used as the rows.
Does this send my YAML anywhere?
No. All conversion happens locally in your browser.
Related Tools
YAML to JSON Converter
Convert YAML to JSON and JSON to YAML — for config files, CI pipelines, and Kubernetes manifests.
YAML to JavaScript Converter
Convert YAML to a JavaScript object literal — choose const, ES module export, CommonJS, IIFE, or bare expression style. Parses YAML to JSON internally, then generates idiomatic JS.
CSV to JSON Converter
Convert CSV files to JSON arrays instantly — with header mapping, delimiter options, and type inference.
JSON to CSV Converter
Convert a JSON array of objects to CSV. Flattens nested objects with dot-notation columns and handles arrays within values.
YAML Validator
Validate YAML syntax online. Shows valid/invalid status with exact error line and column, plus structure stats for valid documents.
YAML Beautifier
Format and prettify YAML with configurable indentation and optional key sorting. Validates YAML syntax instantly.

