Free, no signup. Change the text in any PDF.Edit a PDF
TXT → CSV Converter

Convert TXT to CSV and let the converter find the columns

Comma, tab, semicolon and pipe files, space-aligned reports and database output all become clean CSV.

Select your file to convert

or drop your file here

Advertisements
Expert Tips

What the pros know

Pro Tip

If your bank only offers a printable text statement, convert that file here rather than retyping it. Aligned columns, repeated page headers and blank columns are handled.

Common Mistake

Using Excel's Text to Columns with a space as the separator on an aligned report. It splits every multi-word description into several cells.

Best For

Turning bank statements, printed reports, command output and pasted query results into a CSV you can sort and import.

Not Recommended

Not for prose or notes that aren't a table. They'll come out as a single column, which is correct but not very useful.

FAQ

Frequently Asked Questions

Upload the text file, choose CSV and download the result. The converter works out whether the file uses separators or aligned columns by itself.

No. It detects commas, tabs, semicolons and pipes on its own, and keeps quoted values together.

Yes. Space-aligned statements and reports are split at the column positions, including page headers that repeat and columns that are empty on some lines.

Yes. Space-aligned command output such as tasklist, kubectl and docker listings converts into proper columns.

Yes. Output from MySQL, psql, sqlite, SQL Server and Oracle converts, along with Markdown and box-drawn tables.

Excel guesses the encoding when it opens a CSV and often guesses wrong. Our CSV starts with a byte order mark, which tells Excel it's UTF-8.

They're handled. Values like 1.234,56 aren't split at the comma.

It stays in a single column. Plain notes, lists and JSON lines aren't broken up at spaces.

Large files are streamed rather than loaded into memory at once, so a big log or export won't run out of memory while converting.

Yes, with no sign-up. The conversion runs on our servers.

Convert TXT to CSV online free

What kinds of text files convert to CSV

You don't tell the converter how the file is laid out. It reads the text and decides, file by file.

  • Files that already use a separator: commas, tabs, semicolons or pipes. Quoted values stay in one cell, and European numbers like 1.234,56 and thousands written as 1,234 aren't split in the wrong place.
  • Space-aligned tables, where columns line up by spacing: bank statements, printed reports, and command output such as tasklist, kubectl get and docker ps. Repeated page headers and columns that are empty on some lines are handled.
  • Results copied from database tools: MySQL, psql, sqlite, SQL Server and Oracle, plus Markdown tables and tables drawn with box characters.

Text that isn't a table, such as notes, a plain list or JSON lines, becomes a single column. Nothing gets chopped up at random spaces.

How to convert TXT to CSV

  1. Upload the .txt file with the box at the top of the page.
  2. Choose CSV as the output.
  3. Convert and download the .csv file.

The conversion runs on our servers. Big files are read in a stream rather than loaded all at once, so a large log or export won't run out of memory.

Why space-aligned text is the hard case

A comma-separated file announces its columns. A bank statement or a kubectl listing doesn't. Its columns are only lined up by spaces, a description can contain spaces of its own, and some rows leave a column blank. Splitting on every space breaks a description like "Card payment London" into three cells. The converter works out the column positions from the layout of the whole file, the way a person reads the page, instead of splitting on every space.

Encodings, and opening the CSV in Excel

Text files come in UTF-8, UTF-16 and older Windows code pages, and a file saved by Notepad on one machine may not match one exported from a bank on another. The converter detects the encoding before it reads anything. The CSV it writes starts with a byte order mark, a small marker that tells Excel the file is UTF-8, so accented letters and other scripts show correctly when you double-click it instead of turning into symbols.

Files that won't convert

An empty file, or a binary file that's been renamed to .txt, gets a clear message instead of a meaningless CSV. If your file is a spreadsheet saved under the wrong name, rename it to its real extension and use the matching converter.

Where to go from CSV

Once you have the CSV, CSV to XLSX makes a proper Excel sheet, CSV to DBF builds a dBASE table and CSV to XML exports the rows as XML. For other text exports, TXT to XML and TXT to PDF are available. The TXT converter and CSV converter pages list every option.

Last updated: 27 October 2026 · ChangeMyFile

What changed: TXT to CSV now works out each file's layout: separated values, space-aligned tables and database tool output, in UTF-8, UTF-16 or Windows code pages.

Advertisements
RelatedAlso convert to CSV from