TXT to CSV Converter
Turn Notepad files and other tab-separated, pipe-separated or space-aligned text files into proper CSV for Excel, Google Sheets and databases. Free and private.
- Tabs, pipes or spaces
- Columns detected
- Opens in Excel
- Nothing uploaded
Options
Your data is converted on your own device. Nothing is uploaded, stored or seen by us.
How it works
How to convert TXT to CSV
Add your text file
Drop a .txt file on the box, or paste the text and click Convert.
Check the columns
The converter detects whether columns are split by tabs, pipes, semicolons or runs of spaces. Change Split columns on if the preview looks wrong.
Download the CSV
Choose comma or semicolon for the output and download.
Why this converter
Handles the text files systems export
Tab-separated
Tab-delimited exports from databases, banks and accounting systems.
Space-aligned reports
Old fixed-layout reports where columns are lined up with spaces; values with single spaces inside stay together.
Pipes and more
Pipe | , semicolon, or any character you choose.
Private
Your file never leaves your computer.
More converters: JSON to CSV · CSV to JSON · JSON to Excel · TXT to CSV · XML to CSV · XLSX to CSV · CSV to Excel · XLS to XLSX · PDF to Excel
FAQ
Questions
How do I convert a TXT file to CSV?
Drop the .txt file onto the converter, check that the columns are split correctly in the preview, and click Download CSV.
My columns are lined up with spaces. Will that work?
Yes. Choose 2 or more spaces (it's usually detected automatically). Values that contain single spaces, like "Ana Lima", stay in one column.
How do I convert a Notepad file to CSV?
Notepad files are plain .txt files. Drop the .txt file onto the converter above: it finds the tabs, commas or spaces between your columns and turns them into a CSV. In Notepad itself you can also choose File › Save As, set Save as type to All files and name it data.csv, but that only works if the values are already separated by commas.
Can I just rename .txt to .csv?
Only if the file already uses commas between values. If it uses tabs or spaces, Excel will put everything in one column. This converter rewrites it with real separators.
Is my file uploaded?
No. Everything happens in your browser.