CSV Tools

CSV to YAML

Convert a CSV table into a YAML sequence of records. Header names become mapping keys, each row becomes one item, and every cell stays text.

✓ Every tool runs in your browser. We do not upload your input or output.

CSV to YAML
Keyboard shortcuts

Ctrl/⌘ + Enter: process

Ctrl/⌘ + Shift + F: full screen

Esc: exit full screen

Ctrl/⌘ + F in editor: search

YAML output
ReadyLines: 1 · Characters: 0 · Size: 0 KB · Time: — · Cursor: 1:1

How to use

  1. Paste a CSV table, upload a .csv file, or load the sample roster.
  2. Select comma, semicolon, or tab to match the source file.
  3. Review the YAML records, especially quoted values that look like numbers or booleans.
  4. Copy or download the YAML after confirming its keys and row order.

Examples

Convert a small roster

Leading zeros remain part of the string identifiers in YAML.

Input
id,name
0012,Çağla
0013,Avery
Output
- id: '0012'
  name: Çağla
- id: '0013'
  name: Avery

Keep a quoted comma

The comma is part of the note value rather than another column.

Input
id,note
A-101,"Call Monday, then email"
Output
- id: A-101
  note: Call Monday, then email

Turn spreadsheet records into configuration data

Teams often maintain a small set of test cases, feature flags, or labels in a table and later need the same records in a YAML fixture. This converter takes the first CSV row as field names and writes each data row as a YAML mapping in a sequence. The order of records and columns is preserved, making it easy to compare the result with the source export.

The parser understands quoted delimiters, doubled quotation marks, and line breaks inside quoted fields. Choose the source delimiter explicitly. If the output has one unexpected column, the delimiter setting may not match the file. The tool reports empty or duplicate headers and rows whose field count differs from the header, because those problems would make the record mappings ambiguous.

Keep cells as strings

CSV does not carry a type schema. A cell containing true could be a boolean in one system and a label in another; 0012 might be an account identifier whose leading zeros matter. The converter therefore keeps every cell as text and lets the YAML serializer quote values when needed to preserve their string type. Empty cells become empty strings. If a destination requires numeric or boolean values, apply a known schema after conversion instead of relying on guesses.

The tool creates a YAML sequence, even when the CSV has only one data row. A header-only table becomes an empty sequence. Processing stays in the browser, and Copy and Download use the complete output when the preview is shortened for a large file. Check the result in the application that will consume it, especially if its configuration expects specific field names.

Frequently asked questions

Are numbers and booleans inferred?

No. CSV contains text cells, so the YAML output represents every cell as a string.

Can a header be blank or repeated?

No. Headers must be nonempty and unique so each YAML record has clear mapping keys.

What if a cell has a line break?

Quoted multiline CSV cells are parsed as one value and serialized as valid YAML text.

Does it support semicolon-separated exports?

Yes. Select Semicolon before processing; tab-separated input is supported too.

Will it upload my table?

No. The CSV is parsed and the YAML is generated locally in your browser.

Related tools