# CSV to YAML

> Rows to a YAML list, with numbers, booleans and nested keys. Runs entirely in your browser — nothing is uploaded.

Source: https://toffeekit.com/tools/csv-to-yaml

**Category:** [Data](https://toffeekit.com/category/data) · **Price:** Free · **Runs:** in your browser, nothing is uploaded

Open the tool: https://toffeekit.com/tools/csv-to-yaml

**Also useful for:** csv to yaml, yaml, yml, config, convert csv, fixtures

## How it works

1. Paste your CSV, drop a file or click Open.
2. Keep Detect numbers & booleans on to get typed values.
3. Turn on Nest dotted keys so headers like address.city become nested maps.
4. Optionally Wrap in key, then Copy or Save the .yaml file.

## FAQ

### How do I convert CSV to YAML?

Paste the CSV and each row becomes an item in a YAML list, with the header names as keys. Turn off First row is header to get a list of lists instead.

### Why are some values in quotes?

Strings like yes, no, on, 007 or 2025-01-14 could be read as booleans, numbers or dates by some YAML parsers. They're quoted so every parser reads them as text.

### How do I make nested YAML from a flat CSV?

Name columns with dots, such as address.city and address.country, and keep Nest dotted keys on. They become an address map with city and country inside.

### What happens to empty cells?

With Detect numbers & booleans on, empty cells become null. With it off, every value is a string and empty cells become "".

### Can I put the list under a key?

Yes. Type a name in Wrap in key, such as users, and the whole list goes under users:. This is handy for config files and fixtures.

### Is CSV to YAML free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so your files are processed on your device and never uploaded. It works on phones and computers alike.

## Privacy

CSV to YAML runs entirely in your browser. Your files and text are processed on your device and are never uploaded.

## Related tools

- [CSV to JSON](https://toffeekit.com/tools/csv-to-json) — Turn CSV rows into JSON objects.
- [JSON to CSV](https://toffeekit.com/tools/json-to-csv) — Flatten JSON into a CSV you can open in Excel.
- [XML ⇄ JSON](https://toffeekit.com/tools/xml-json-converter) — Convert XML to JSON and back.
- [CSV Cleaner](https://toffeekit.com/tools/csv-cleaner) — Trim cells, drop empty rows, remove duplicates.
- [Delimiter Converter](https://toffeekit.com/tools/csv-delimiter-converter) — Switch between comma, semicolon, tab and pipe.
- [CSV Viewer](https://toffeekit.com/tools/csv-viewer) — Open a CSV as a sortable, searchable table.

