TXT to CSV Converter
Turn a plain text list or log into a CSV file for your spreadsheet. Every line becomes a row, and you can split lines into columns at spaces, tabs, commas or any symbol you choose, then add a header row with your own column names.
How to Convert TXT to CSV
Quick answer: paste your text, choose where to split each line and add column names, then download the .csv.
-
1
Add your text
Paste it or open a .txt file.
-
2
Choose the split
Spaces, tabs, commas or a symbol.
-
3
Add a header
Type your column names.
-
4
Download .csv
Open it in any spreadsheet.
What You Get
Why Convert TXT to CSV?
Lists, logs, exports and notes often arrive as plain text, one item per line. A spreadsheet needs them as rows and columns. This converter turns each line into a row and can split it into columns at a separator you choose, so a text file of names, emails and cities becomes a proper table in seconds.
Choosing How to Split
Don't split keeps each line in a single column, perfect for simple lists. Spaces splits at any run of spaces, which suits word lists and aligned logs. Tabs handles text copied from tables. Commas splits "a, b, c" style lines. Symbol lets you type any separator, such as a pipe, a semicolon or a dash with spaces around it.
Header Row and Output
Type column names separated by commas to add a header row at the top; leave the box empty if your first line already contains the names. Choose comma, semicolon or tab as the CSV separator, and tick spreadsheet-friendly accents if your spreadsheet shows accented letters incorrectly. Values that contain the separator or quotes are quoted automatically.
Example
The sample has three lines separated by pipes and an empty line. With Symbol set to | and the header names Name, Email, City typed in, the result is a four-row CSV with the columns Name, Email and City, and the empty line is skipped.
Who Converts TXT to CSV?
Office workers turning lists into spreadsheets, marketers preparing contact imports, developers converting simple logs into analysable tables, teachers turning class lists into gradebooks, and researchers structuring notes and survey answers.
Step by Step
Paste the text or open the file. Look at one line and decide which character separates the parts; choose it under Split each line at. Type your column names, check the result, then download the .csv file. If some rows have more columns than others, the separator also appears inside values; choose a different split or clean the text first with Remove Extra Spaces.
Good to Know
Trimming removes spaces around each value, so "Ana Silva | ana@example.com" gives clean cells. Empty lines are skipped by default. To turn the CSV into JSON afterwards, use CSV to JSON, and to go back to plain text, CSV to TXT.
Practical Tips
Look at a few lines before choosing how to split them. If values are separated by a fixed symbol, such as a pipe or a semicolon, choose Symbol and type it. If they are separated by varying numbers of spaces, choose Spaces. Lines with fewer parts than others create rows with fewer columns, which spreadsheets show as empty cells at the end. Tidy the text first with Remove Extra Spaces if it was copied from a PDF or a web page. Download the result and open it in your spreadsheet to check that every value landed in the right column.
Private, Free and Instant
The converter is free and handles files up to 5 MB. There is no sign-up, no limit beyond the 5 MB file size and nothing to install. Everything runs in your browser, so documents, exports and private data are never uploaded or stored. Open a file from your device or paste text from another program, then copy the result or download it with the right file extension. It works on Windows, Mac, Linux, Chromebooks, iPhone and Android.
From Lines of Text to Table Rows
A text list can become a CSV with one value per row, or lines with delimiters can be split into columns. This helps with importing lists into spreadsheets and databases.
Tips
- Choose the delimiter that separates fields in your text, such as tab, space, semicolon or pipe.
- Add a header row if the importer expects one.
- Check for quotes and commas inside values.
For the reverse, see CSV to TXT.
Frequently Asked Questions
Questions about TXT to CSV