CSV to YAML Converter
Runs in your browser — your files are never uploaded.
Turn a spreadsheet export into a YAML list — the shape configuration files, Kubernetes manifests, Ansible inventories and CI pipelines are written in. Each row becomes a mapping, and cell values are read as what they look like: 42 comes out as a number, true as a boolean, an empty cell as null, rather than everything arriving as a quoted string you then have to fix by hand. Runs entirely in your browser.
How to convert CSV to YAML
- 1
Drop your .csv file onto the box, or click to choose one.
- 2
Each row becomes a YAML mapping, keyed by your header row.
- 3
Click “Download” to save your .yaml file.
Share
Embed this tool on your site
Paste this where you want the tool to appear. It runs entirely in your visitor's browser — no uploads, no account, no tracking.
Please keep the attribution line — it's what keeps these tools free.
Need a different size, a dark theme, or a different tool? Build an embed lets you preview it first.
Frequently asked questions
Are numbers and booleans quoted?+
No — they are emitted as real YAML scalars. That is usually what you want, since a config reader that expects a number and gets "42" will often fail. If you need everything as strings, quote the values in the CSV before converting.
Why is one of my column names in quotes?+
YAML 1.1 reads bare n, y, yes, no, on and off as booleans, so a column literally named "n" has to be quoted to stay a string key. That is correct output, not a bug — removing the quotes would change what the file means.
What does an empty cell become?+
null. YAML distinguishes an empty string from a missing value, and null is the closer match for a blank spreadsheet cell.
Can I get a mapping keyed by ID instead of a list?+
Not directly — the output is a sequence of mappings, which is the faithful representation of a table. Re-keying is a transformation on top of that, and doing it automatically would guess wrong about which column is the key.
Is my file uploaded?+
No. The parsing and YAML generation both run on your device. Worth noting for this one in particular: CSVs headed for a config repository often contain hostnames, credentials or customer records.