CSV to YAML
Turn a CSV file into clean YAML in one step. The first row becomes the document keys (or you can disable the header), each subsequent row becomes a list item, and cell values are typed: integers stay numbers, decimals stay floats, true/false become booleans, empty cells become null, and everything else is emitted as a safely quoted string. Values and keys that would be ambiguous in YAML are quoted automatically, so the output parses exactly back to the table you started from. All conversion happens on your device.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
What the converter writes
Paste a comma, semicolon, tab or pipe separated table and you get back a YAML document made of one list item per row, each item a mapping of keys to values. The first row supplies those keys unless the header option is off, in which case the columns are named column_1, column_2 and so on.
When a YAML list is the format you want
Reach for this when a spreadsheet has to become configuration rather than code: test fixtures, seed records for a static site, or a small inventory file. Hand-typing indentation for a hundred rows is where typos live, so paste the source rows and let the generator lay out the block.
Picking the delimiter and header settings
Set the delimiter to match the export, comma by default, with semicolon, tab and pipe also available. Keep First row is the header on so the top line names the keys; turn it off for headerless dumps. Blank or repeated header cells are renamed to safe unique keys such as column_3 and price_2 instead of colliding.
Typing, quoting and the awkward cases
Unquoted cells that read as integers or decimals become YAML numbers and true or false become booleans, while empty cells become null. Anything you wrapped in quotes in the CSV stays a string, and any value YAML could misread is double-quoted automatically. Cells beyond the last header are kept under _unmapped_ keys rather than dropped.
Everything happens inside the page
Parsing, type detection and quoting run on your device only. The table is never uploaded, and the converter keeps working with no network connection at all.
Questions
How are cell values typed?
Unquoted cells that look like integers, decimals or true/false become native YAML values; empty cells become null; everything else stays a string. If a cell was quoted in the source CSV it is always kept as a string, and strings that could be misread are double-quoted automatically.
How are headers handled?
With the header option on (default) the first row names the keys. With it off, rows are numbered keys such as row_1. Blank or duplicate header cells are given safe unique names.
What about quoted CSV cells containing commas or newlines?
The parser follows RFC 4180: commas and newlines inside double quotes are part of the cell, and "" is an escaped quote. Such values are emitted as quoted YAML strings that round-trip exactly.
Related tools
See categoryCSV to JSON
Parse CSV (RFC 4180) into a JSON array, with delimiter sniffing and type inference.
JSON to YAML
Convert JSON to YAML on your device, with a 2- or 4-space indent.
CSV Profiler
Profile a CSV file: per-column type inference, missing values, unique counts, and numeric stats.
CSV to Markdown Table
Convert a CSV table into a clean GitHub-Flavored Markdown pipe table with optional alignment.