Convert CSV to YAML
Convert CSV to YAML locally in your browser.
Tool workspace
Convert CSV to YAML in your browser. The first row becomes map keys; each following row becomes one mapping in a YAML sequence. Quoted fields follow RFC 4180. Nothing you paste is uploaded.
How it works
Conversion runs entirely in your browser. The first non-empty row is treated as headers (YAML map keys). Each following row becomes one mapping in a YAML sequence. Fields are parsed per RFC 4180 (commas, quoted values, doubled quotes, newlines inside quotes). A leading UTF-8 BOM is stripped. Values are emitted as double-quoted strings (no type inference). Keys that are not plain identifiers are quoted. Missing columns become empty strings; extra cells beyond the header count are ignored. Duplicate header names: later columns overwrite earlier keys in the same mapping.
Empty input clears the result—no error. Header-only CSV yields an empty sequence (`[]`). Unclosed quotes show a clear parse error. Nothing you paste is uploaded.
Examples
- name,age → - name: "…" / age: "…"
- "Hello, ""world""" → quoted commas and quotes
- Header-only CSV → []
Privacy
FAQ
Is my CSV uploaded?
No. Conversion runs entirely in your browser. We do not log or store what you paste.
Are numbers and booleans typed in the YAML?
No. Every cell is emitted as a double-quoted string so the original text is preserved.
Do I need an account?
No. All published tools work for guests without login.