Convert CSV to YAML

CSV headers become YAML field names and each data row becomes a record. Cells are parsed as strings rather than inferred numbers; compare the converted values.

Drop a file here or click to choose one — CSV

Processed entirely in your browser using a Web Worker. Nothing is uploaded.

When to convert CSV to YAML

Handy when a team keeps inventories or test cases in a sheet but the deployment or CI tooling reads YAML. You get one readable record per row, ready to paste into a variables file. Watch settings such as ports and replica counts: they stay quoted text here, and a tool that needs a real integer will reject them until you edit them.

How it works

  1. Drop your CSV file into the box above, or click to choose one.
  2. Your browser parses it and rewrites it as YAML instantly — nothing is sent anywhere.
  3. Download the YAML file. That's it.

Questions

Does anything get lost converting to YAML?

CSV headers become YAML field names and each data row becomes a record. Cells are parsed as strings rather than inferred numbers; compare the converted values.

Why does YAML put quotes around some values?

Because they would otherwise change type. In our test, 007 was written as '007' and true as 'true', so a YAML reader keeps them as text, exactly as they were in the CSV.

How are empty cells written?

As an empty quoted string, for example bos: ''. They do not become null, so check this if your configuration or import treats a blank value and a missing value differently.

Can cells contain commas or line breaks?

Yes, when they are quoted in the CSV as the RFC 4180 convention describes. The value stays one field, and doubled quotes turn into a single quote character. Turkish and other UTF-8 letters came through unchanged.

Having trouble with this tool? Report an issue →