CanDoYa
EN

CSV to YAML Converter

Runs entirely in your browser - no upload, no sign-up.

CSV
YAML
Paste CSV to convert it to YAML.
Share this tool

How do you convert CSV to YAML?

Paste your CSV into the converter and it turns each row into YAML: the first row becomes the keys and every following row becomes a YAML mapping in a list. It auto-detects the delimiter, optionally converts numbers and booleans to real YAML scalars, and runs entirely in your browser.

How to use

  1. 1Paste your CSV. Paste or type CSV into the left panel, or load the example to see the format.
  2. 2Set the options. Keep 'First row is a header' on for keyed mappings, choose a delimiter (or leave it on auto), and toggle number and boolean detection.
  3. 3Copy the YAML. The YAML updates live on the right. Copy it or download it as a .yaml file.

Who it's for

CSV is a flat grid of text with no data types; YAML is a structured, human-readable format used for configuration, fixtures and data files. This tool bridges the two: with a header row, each record becomes a YAML mapping (key: value) inside a sequence; without one, each row becomes a plain list of values. Quoted fields, embedded commas and line breaks, and escaped quotes are all parsed correctly.

Everything happens locally in your browser. Your data is never uploaded, logged or sent to a server, so it is safe to convert spreadsheets that contain private or sensitive records.

FAQ

Does the first row have to be a header?

No. Keep 'First row is a header' on to turn each record into a keyed YAML mapping. Turn it off and every row becomes a simple YAML list of values instead, which is useful when your CSV has no column names.

What delimiters are supported?

Comma, semicolon, tab and pipe. Auto-detect inspects the first line and picks the most likely one, so European semicolon files and tab-separated exports work without changing any settings.

Will it keep leading zeros and long numbers?

Yes. With type detection on, a cell only becomes a YAML number when it converts back to the exact same text. Values like 007, 07030 or very long IDs stay quoted strings, so no data is lost or reformatted.

Is my data uploaded anywhere?

No. The conversion runs entirely in your browser using JavaScript. Nothing you paste is sent to a server, stored or logged, so it is safe for private spreadsheets.

Are quoted fields with commas handled?

Yes. Fields wrapped in double quotes can contain commas, line breaks and escaped double quotes (written as two quotes), and the parser keeps them intact in the YAML output.