YAML is the format of configuration files, Ansible inventories, Kubernetes manifests and static-site data, but reviewing a long list of entries is much easier as a table. This tool reads a YAML list of records (each starting with a dash and containing key: value pairs) and produces a CSV with one column per key and one row per record.
Paste the YAML, type the file name and download the CSV. The conversion is done with a lightweight parser in your browser, so infrastructure files with hostnames or credentials are never uploaded.
How to use YAML to CSV step by step
Type the name of the output file; the .csv extension is added automatically.
Paste a YAML list where each item starts with "- " and holds key: value pairs on the following indented lines.
Click "Convert and download CSV". The header row is the union of all keys found in the records.
Input and output example
Input
- name: Juan
age: 30
city: Madrid
- name: Ana
age: 25
city: Barcelona
Output
name,age,city
Juan,30,Madrid
Ana,25,Barcelona
Why use our YAML to CSV?
100% free and online: no payments, no software or extensions to install.
Privacy-first: processing happens in your browser, your data never leaves your device.
No sign-up: paste your data and get the result in one click.
Fast and reliable: handle small or large files in seconds, ready for Excel and other tools.
Common use cases
Turn an Ansible inventory or a list of hosts in YAML into a spreadsheet for an audit.
Export the data files of a Jekyll or Hugo site (_data/*.yml) to CSV for editing in Excel.
Review a list of users, feature flags or environments defined in YAML as a table.
Move a YAML dataset into a database loader or a BI tool that expects CSV.
Limits and tips
Only flat records are supported: a list of mappings with scalar values. Nested mappings, nested lists, multi-line strings and anchors are not parsed.
Surrounding single or double quotes around values are removed; comments starting with # are ignored.
Keys that appear in only some records still become columns; records without that key get an empty cell.
Values containing commas, quotes or line breaks are quoted in the CSV following RFC 4180.
Frequently asked questions
What YAML structure does the converter expect?
A sequence of mappings: each record begins with a dash, and its fields are key: value lines indented under it (the first field may sit on the dash line). This is the shape of most data lists in YAML, such as inventories, user lists or content entries.
Why is my nested YAML not converted correctly?
The parser is intentionally simple and only reads one level of key: value pairs per record. Nested objects, lists inside a record and block scalars (| or >) are skipped or read as plain text. Flatten those fields first, for example with yq, if you need them as columns.
What is the difference between YAML and CSV?
YAML is a hierarchical, human-readable format for configuration and structured data that supports nesting, comments and types. CSV is a flat table of delimited values without types or nesting. YAML suits configuration; CSV suits spreadsheets and bulk data exchange.
Does it convert Kubernetes manifests?
Not as a whole document: a manifest is a single nested mapping, not a list of flat records. You can, however, paste a list such as the containers or env entries of a deployment, which are flat enough to become rows.
Is the YAML sent to a server?
No. The parsing and the CSV generation run in your browser. The file is created locally and nothing is transmitted.
Related tools
Other free utilities you may find useful
CSV to YAML — Transform data in CSV format to YAML.
Excel to CSV — Convert an Excel workbook (.xlsx, .xls, .ods) to UTF-8 CSV, choosing the sheet and the delimiter (comma, semicolon or tab).
Fixed-Width to CSV — Transform fixed-width text into a well-structured CSV file.