CSV to YAML Converter
The CSV to YAML converter transforms tabular CSV data into structured YAML arrays. The first row of your CSV is used as header names, and each subsequent row becomes a YAML object with those headers as keys. This is the reverse of the YAML to CSV converter and is ideal for importing spreadsheet exports, database dumps, or any tabular data into YAML-based workflows.
The converter automatically infers data types from cell values: numbers are converted to numeric types, "true" and "false" become booleans, "null" becomes a null value, and everything else remains a string. It correctly handles quoted fields containing commas, newlines, and escaped quotes according to the CSV specification.
Supports configurable separators — use comma (default), tab (for TSV files), or any custom character. The settings panel lets you switch separators with one click. All processing runs in your browser with no server-side data transmission.
- First row used as YAML keys automatically
- Automatic type inference (numbers, booleans, null)
- Configurable separator (comma, tab, custom)
- Handles quoted fields with commas and newlines
- Download converted YAML file
- Copy result to clipboard with one click
Example Input
name,age,email Alice,30,alice@example.com Bob,25,bob@example.com
Example Output
- name: Alice age: 30 email: alice@example.com - name: Bob age: 25 email: bob@example.com