CSV files (Comma Separated Value format) are specially formatted text files. You can find programs and utilities that can take your text data and format it accordingly to CSV format. In most cases various spreadsheet software like Excel are good choice for this and will essentially allow you to convert txt to csv.
Open TXT file Open CSV fileA dbf editing and converting tool
A sophisticated text editor