How to convert TXT to CSV
- Drop your TXT file on the box above, or paste its content into the text box.
- Check the settings below the box; the defaults suit most files.
- Press Convert. You see a preview or a summary of the result.
- Download the .csv file, or copy the text.
What is kept when you convert TXT to CSV
- Each line becomes a row and each field a column, split on the delimiter you choose (or the one detected).
- Fields that contain commas, quotes or line breaks are quoted the RFC 4180 way, so the CSV re-opens with the same columns.
- Values are written exactly as they are — nothing is trimmed, reformatted or converted to numbers.
Example
A short TXT input and the exact output this tool produces from it:
Input
name city score
Smith, John London 42
Anna Berlin 007 Output
name,city,score
"Smith, John",London,42
Anna,Berlin,007
About TXT and CSV files
A .txt file is plain text: characters and line breaks, with no fonts, sizes or layout. It is what Notepad, TextEdit, code editors and many export buttons produce. It opens in any text editor.
CSV (comma-separated values) is a table as plain text: one row per line, fields separated by commas, and fields that contain commas, quotes or line breaks wrapped in double quotes. It opens in Excel, Google Sheets, LibreOffice, any database tool.
Good to know
- If accented letters show up as é or ?, the text file was saved in an older Windows encoding; this tool reads UTF-8 and falls back to Windows-1252 automatically, so open the result and check one accented word.
- If a spreadsheet showed all your data in one column, the file probably uses semicolons (common in Europe); choose the delimiter instead of relying on detection.
Privacy and limits
The file is read and converted by this page in your browser; there is no upload and no account. Files up to 25 MB are accepted; a file of the wrong type or a damaged file is rejected with the reason.