Data Tools

CSV to YAML Converter

Convert CSV to YAML right in your browser — nothing is uploaded. Static-site generators, test fixtures and configuration files use YAML lists of records.

By Aditya Kr Sharma Files stay on your device

  • Free
  • Instant
  • No sign-up

CSV to YAML converter

Convert

Or import from
Supports: CSVTSVTXT

Nothing is uploaded. This tool runs entirely in your browser, so the file never leaves your device. There is no server to send it to, no copy kept anywhere, and it keeps working if you lose your connection after the page has loaded.

Accepts .csv .tsv .txt You get: A .yaml file Free, no sign-up

How to convert

  1. Add your files Drag them in, choose files, or use the camera.
  2. Check the settings The defaults suit most files.
  3. Download Save one file, or all of them as a ZIP.

How to convert CSV to YAML

  1. Drop your CSV file on the box above, or paste its content into the text box.
  2. Check the settings below the box; the defaults suit most files.
  3. Press Convert. You see a preview or a summary of the result.
  4. Download the .yaml file, or copy the text.

What is kept when you convert CSV to YAML

  • Each row becomes a list item with one key: value per column.
  • Values are double-quoted, so YAML cannot misread “no”, “on”, “1e3” or “00123” as booleans or numbers — the classic YAML trap.
  • With type detection on, plain numbers and true/false are written unquoted as real numbers and booleans.

Example

A short CSV input and the exact output this tool produces from it:

Input

name,city,score
"Smith, John",London,42
Anna,"New ""York""",7.5

Output

- name: "Smith, John"
  city: "London"
  score: 42
- name: "Anna"
  city: "New \"York\""
  score: 7.5

About CSV and YAML files

CSV (comma-separated values) is a table as plain text: one row per line, fields separated by commas, and fields that contain commas, quotes or line breaks wrapped in double quotes. It opens in Excel, Google Sheets, LibreOffice, any database tool.

YAML is a readable data format used for configuration files and test fixtures — lists start with a dash, mappings use key: value. It opens in any code editor; read by every major programming language.

Good to know

  • If a spreadsheet showed all your data in one column, the file probably uses semicolons (common in Europe); choose the delimiter instead of relying on detection.
  • YAML is indentation-sensitive; keep the two-space indent when you edit the file.

Privacy and limits

The file is read and converted by this page in your browser; there is no upload and no account. Files up to 25 MB are accepted; a file of the wrong type or a damaged file is rejected with the reason.

Frequently asked questions

Why are my values in quotes?

Unquoted YAML guesses types: Norway’s country code NO becomes false, and 00123 can become 123. Quoting keeps every value exactly as text unless you ask for numbers.

Is the output valid for Jekyll and Hugo data files?

Yes — it is a standard YAML sequence of mappings; our tests parse it with js-yaml.

Is my file uploaded to a server?

No. The conversion runs in your browser on your own device, and this page has no upload endpoint.

Is there a size limit?

One file of up to 25 MB at a time (about 2 million cells). Larger files can exhaust a browser tab’s memory, so the tool refuses them with a message instead of failing halfway.

More in Data Tools All tools