CSV to YAML Converter

Turn spreadsheet rows into a clean YAML list for configs, fixtures and static sites.

100% Client-Side Processing — your data never leaves this browser. Works offline. How it works

0 lines • 0 bytes Ready
Tip: drop a file anywhere on the editor
Input
Paste, type or drop a file
1
Result
Updates as you type
// Output will appear here…
About this tool

How the CSV to YAML works

Convert CSV to YAML: each row becomes a YAML mapping with the header row as keys. Numbers and booleans are detected. Free, fast and private.

How to use the CSV to YAML

  1. Paste CSV or upload a .csv file.
  2. Check the delimiter and header options.
  3. Copy or download the YAML.

CSV to YAML example

Input
name,role,remote
Aarav,Engineer,true
Sara,Designer,false
Result
- name: Aarav
  role: Engineer
  remote: true
- name: Sara
  role: Designer
  remote: false

When to use it

  • Creating data files for static site generators.
  • Turning a spreadsheet of settings into configuration.
  • Writing YAML fixtures for tests.

Tip: Use YAML to CSV to go back to a spreadsheet after editing.

Header row as keys

Each CSV row becomes a YAML mapping keyed by the column names.

Typed values

Numbers and true/false are written unquoted, so YAML parsers read them as numbers and booleans.

Any delimiter

Comma, semicolon, tab and pipe files are detected automatically.

Quoted fields

Commas, quotes and line breaks inside quoted CSV fields are handled correctly.

FAQ

Common questions

What does the output look like?

A YAML list: each item starts with "- " and contains one key per column.

Can I keep everything as text?

Yes. Untick "Detect numbers & booleans" to keep every value as a string.

Where is YAML from CSV useful?

Hugo and Jekyll data files, Ansible variables, Kubernetes ConfigMaps and test fixtures.

Is the CSV uploaded?

No, conversion happens in your browser.