CSV to YAML Converter
Convert CSV rows to a YAML list.
Click to upload or drag and drop
.csv .tsv .txt
No file at hand?
How to convert CSV to YAML online
- 1
Upload a CSV file or paste CSV data and click "Convert".
- 2
Each row becomes one item in a YAML list, with the header as keys.
- 3
Keep "Convert numbers and true/false" on for typed values, or turn it off to keep everything as text.
- 4
Copy the YAML or download it as a .yaml file.
Example: CSV to a YAML list
CSV input
name,zip,active,salary Emma,02134,true,98000 "Smith, John",10001,false,65000
YAML output
- name: Emma zip: '02134' active: true salary: 98000 - name: Smith, John zip: 10001 active: false salary: 65000
Tips for converting CSV to YAML
Leading zeros are safe
Values like 02134 are quoted, so YAML parsers read them as text instead of the number 2134.
Multi-line values
Cells with line breaks are written as YAML block text, which keeps them readable.
Config and test data
YAML lists work well as seed data, test fixtures and data files for static site generators like Hugo or Jekyll.
Special characters
Values that contain colons, # or quotes are quoted automatically, so the YAML is always valid.
CSV to YAML FAQ
Is the CSV to YAML converter free?
Yes. It is free with no sign-up.
Is my data uploaded?
No. The conversion runs in your browser.
Can I get YAML strings only?
Yes. Turn off "Convert numbers and true/false" and every value is written as text.
Can I convert YAML back to CSV?
Yes. Use the YAML to CSV converter on CSV.ink.
All CSV Tools
CSV to JSON
Convert your CSV files to JSON format with ease.
JSON to CSV
Convert your JSON files to CSV format easily.
CSV to Excel
Convert CSV files to Excel format easily
Excel to CSV
Convert Excel spreadsheets to CSV format.
Excel to JSON
Convert Excel spreadsheets (XLSX, XLS) to JSON arrays.
JSON to Excel
Convert JSON data to an Excel (XLSX) spreadsheet.
CSV Splitter
Split a large CSV file into smaller files by row count.
Merge CSV
Combine multiple CSV files into one, matching columns by header.
XML to CSV
Convert XML files to CSV format efficiently.
CSV to XML
Convert CSV files to XML format efficiently.
CSV to YAML
Convert CSV rows to a YAML list.
YAML to CSV
Convert a YAML list to a CSV table.
CSV to Markdown
Convert CSV files to Markdown tables.
Markdown to CSV
Convert Markdown tables to CSV files.
CSV to HTML
Convert CSV files to HTML tables.
HTML Table to CSV
Extract tables from HTML and save them as CSV.
CSV to PDF
Convert CSV files to PDF documents.
CSV to SQL
Convert CSV files to SQL insert statements.
CSV to vCard
Convert CSV files to vCard format for contacts.
CSV to TSV
Convert comma-separated CSV to tab-separated TSV.
TSV to CSV
Convert your TSV files to CSV format easily.
TSV to Excel
Convert your TSV files to Excel format easily.