Skip to content

CSV to YAML Converter

Drop a CSV and its YAML list appears at once, one mapping per row, ready to copy or download.

Processed on your device. Nothing is uploadedHow to check

Try a sample file:

You can also paste CSV or JSON text with Ctrl+V (⌘+V on a Mac).

Paste text instead

Pasted text stays in this tab and is never sent anywhere.

Turn a spreadsheet export into YAML for fixtures, seed data, a static site's data folder or an Ansible inventory. Choose, drop or paste a CSV or TSV file and the YAML appears at once: a list with one mapping per row, keyed by the header row. Plain decimals become YAML numbers; codes such as 007, phone numbers and long IDs stay text, so nothing loses a digit. Arabic is written as it is, not as escape codes. The delimiter and encoding are detected for you, and the conversion runs in your browser.

Why use CSV to YAML

  • Private

    Your CSV is turned into YAML by your own browser and never sent to a server.

  • Codes stay intact

    Only plain decimals become numbers; 007, phone numbers and long IDs stay text, so the YAML reads back as your data.

  • Works offline

    Once this page has loaded, it keeps working without an internet connection.

How it works: convert CSV to YAML

  1. Add your CSV

    Choose or drop a .csv or .tsv file, paste CSV text into the box, or try a sample. The delimiter and encoding are detected for you.

  2. Read the YAML

    Each row becomes a list item starting with a dash, with one key per column from the header row.

  3. Copy or download

    Copy the YAML to your clipboard or download it as a .yaml file with the CSV's name.

What the CSV to YAML converter handles

  • Files: .csv and .tsv, or CSV text you paste; comma, semicolon, tab and pipe delimiters.
  • Encodings: UTF-8, UTF-16 (when the file starts with a byte order mark), Windows-1256 Arabic and Windows-1252 Western European text, detected automatically.
  • Shape: a YAML list with one mapping per row, keyed by the header row.
  • Numbers: plain decimals such as 42 or 3.5 become numbers; 007, phone numbers and long IDs stay text.
  • Arabic and other non-Latin text written as it is, not as escape codes.
  • Quoted CSV fields with commas or line breaks inside, as Excel and Google Sheets write them.

CSV to YAML: what it can't do

  • The first row is read as the keys, so it should hold the column names.
  • Every row becomes a flat mapping; the converter does not build nested YAML from column names.
  • The preview shows the first 5,000 lines; Copy and Download always take the whole YAML.

CSV to YAML: questions and answers

Is my file uploaded?
No. Your browser reads the CSV and writes the YAML on your device. Pasted text stays in this tab and is never sent anywhere.
What shape does the YAML take?
A list: each CSV row becomes one item that starts with a dash, and each column becomes a key from the header row with that row's value.
Why did 007 stay in quotes?
Written as a number, 007 would become 7. Only plain decimals become YAML numbers; codes with leading zeros, phone numbers and long IDs stay text so they read back unchanged.
Can I get nested YAML from columns like address.city?
No. Each row becomes a flat mapping and a header such as address.city stays one key. Nest it by hand after converting if your tool needs it.
Is Arabic text kept readable?
Yes. Arabic and other non-Latin text is written as it is in UTF-8, not as \u escape codes, so you can read and edit the YAML directly.
Can I convert YAML back to JSON?
Yes, on the YAML to JSON page, which opens a .yaml or .yml file as JSON.
How do I convert a CSV file to YAML?
Open or paste the CSV and each row becomes a YAML list item with one key per column; copy it or download it as a .yaml file. OpenAnyDoc converts it in your browser, without uploading the data.

Why it's private: your files never leave your browser

Most online viewers upload your file to a server, so a copy of it leaves your device. OpenAnyDoc works the other way round: your browser reads the file and draws it on your screen. Nothing is uploaded, there is no account, and the file is gone from memory when you close the tab, so there is nothing for us to store, see or lose.

How we tell you about new features

Announcements are based on the release date shown to everyone, and nothing is stored on your device or sent anywhere.