Blog
Image Tools
Crop Image
Resize Image
Rotate & Flip
Compress Image
Photo Filters
Meme Generator
GIF Maker
Collage Maker
Watermark Image
Blur Image
Convert
JPG to PNG
PNG to JPG
HEIC to JPG
DNG to JPG
Image Converter
PDF to JPG
JPG to PDF
Merge PDF
Compress PDF
MP4 to MP3
Video to GIF
MOV to MP4
MP3 Converter
Video & Audio
Trim Video
Crop Video
Remove Audio
Text to Speech
Audio Cutter
MP3 Compressor
Design & Editor
Resume Builder
Design Editor
Add Text to Photo
Social Media Resizer
QR Code Generator
Signature Generator
More Tools
Word Counter
Password Generator
Random Picker
Dice Roller
Spinner Wheel
Favicon Generator
Barcode Generator
Browse All Tools

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.

100% Free
No Sign-up
Custom Split
Header Row
Private · Nothing Saved Online
TXT to CSV
Your Text
Input Characters—
Output Characters—
Lines In → Out—
Input Words—
Type or paste in the input box, or open a file. The result updates as you type.
CSV to TXT
TextType, paste or drop a file
CSV
Input—
Result—
Status—
Settings forYour content
Split Each Line At
Header Row
Column names separated by commas. Leave empty for no header.
Output
File Name

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. 1

    Add your text

    Paste it or open a .txt file.

  2. 2

    Choose the split

    Spaces, tabs, commas or a symbol.

  3. 3

    Add a header

    Type your column names.

  4. 4

    Download .csv

    Open it in any spreadsheet.

What You Get

Rows
One per line
Custom Split
Any symbol
Header Row
Your column names
Correct Quoting
Spreadsheet-safe
Private
Nothing is uploaded
Any Device
Phone or computer

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.

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

How do I convert a text file to CSV?

Paste the text or open the file, choose how to split lines and download the .csv.

Can I split lines into columns?

Yes. Split at spaces, tabs, commas or any symbol you type.

Can I add column names?

Yes. Type them, separated by commas, in the header box.

What happens to empty lines?

They are skipped unless you untick that option.

How large can my file be?

Up to 5 MB of text, which covers very long documents and tables.

Is my content uploaded?

No. Everything happens in your browser on your own device. Nothing is sent or stored.