CSV to YAML Converter
Convert CSV spreadsheets to structured YAML outputs. Fast, free, and fully client-side.
How the CSV to YAML Converter Works
Converts CSV rows into a YAML list in which each row becomes a mapping keyed by the header names, written with two-space indentation. The first row supplies the keys for every item. Conversion runs in your browser, and the file is never uploaded.
Usage Example
Turn a spreadsheet of server hostnames and ports into a YAML inventory list for a configuration file.
Frequently Asked Questions
Are numbers and booleans written as YAML numbers?
No. Every cell is read as text, so values such as 8080 or true are written as strings rather than YAML numbers or booleans. Adjust those values in the output if the target parser requires typed values.
What happens to empty cells?
A missing or empty cell is written as an empty string, so every item keeps the same keys as the header row. A row with fewer fields than the header still receives all of the keys.
How are header names used as keys?
Each header name becomes a key in every mapping, exactly as typed, including spaces and capitalization. If two headers share the same name, the later column overwrites the earlier one, so keep the names unique before converting.
Browse more
See all CSV tools.
