creatorvalet

Convert TXT to CSV

Choose what separates the source columns, check the decoded table, and export a real CSV without guessing spaces into fields.

  • SECURE
  • NO UPLOADS
  • NO SIGNUP
  • BROWSER BASED
  • FREE
  • FOREVER.

Support us with a link or a share

Source

Text that should become a table

Column preview

Waiting for text

Paste text or open a file. Spaces stay inside cells unless the source contains an explicit supported delimiter.

A TXT file does not say where its columns are

TXT describes a container with text in it, not a table format. One file may separate fields with tabs, another with semicolons, a third with pipes, and a fourth may contain one value on each line. Renaming any of them to .csv does not establish which interpretation is correct. A converter has to make that decision visible before it writes a new extension.

Auto mode above has a deliberately small vocabulary: comma, semicolon, tab, and pipe. It counts only delimiters outside quoted fields, then shows the resulting columns. If none is present, each source line remains one cell. Ordinary spaces stay ordinary spaces. Splitting on whitespace would turn a person's full name, a street address, or a sentence into invented columns, while fixed-width records require boundaries supplied by someone who knows the source specification. This tool does neither and says so in the receipt.

Convert TXT to CSV without sacrificing the first row

Many text tables begin with names such as customer, city, and postal code. Others begin immediately with data. The header switch controls that difference. When it is on, the first record becomes the CSV header. When it is off, every source record remains data and the converter supplies neutral names such as Column 1. The preview changes before download, so the choice is inspectable instead of becoming a surprise inside Excel.

Quoted commas, doubled quote marks, and line breaks inside quoted fields follow CSV parsing rules when a real delimiter is selected. Rows with a different number of cells are not padded with invented values or silently discarded. They remain in the output and receive a shape warning. Leading-zero values such as 01234 also remain byte-for-byte in their cells, with a warning that spreadsheet software may reinterpret them when opening a CSV.

Encoding is separate from the delimiter

A file can have the right tab structure and still display the wrong characters. UTF-8, UTF-16, and Windows-1252 describe how bytes become characters; comma and tab describe how those characters become cells. File input keeps those two decisions separate. The detected encoding is shown, and changing it re-reads the original bytes rather than converting text that was already damaged. Pasted text has already been decoded by the browser, so there are no original file bytes to inspect and the page says that plainly.

Output is comma-delimited CSV with CRLF record endings and UTF-8 encoding. The optional byte order mark helps versions of Excel that otherwise guess a legacy encoding. It does not control columns and it cannot prevent a spreadsheet from treating a text-looking value as a number. If the input is already a CSV and the goal is to search, sort, repair, or export it to several formats, use the CSV viewer. If the desired result is an actual workbook with typed cells, use CSV to Excel instead.

Questions

How does the converter decide where columns begin?

Auto mode looks only for commas, semicolons, tabs, and pipes outside quoted fields. You can select any one explicitly or choose one value per line. Ordinary spaces and fixed-width alignment are never guessed because a space inside a name is data, not reliable structure.

What if the first line contains data rather than column names?

Turn off “First row contains column names.” The first line remains a data row and the output receives deterministic names such as Column 1 and Column 2.

Will postal codes and IDs keep their leading zeros?

Yes, the CSV writer preserves every value as text bytes, including 01234. Spreadsheet software can still reinterpret CSV cells when it opens the file, so the receipt warns whenever leading-zero values are present.

Can it read UTF-16 or Windows text files?

Yes. It detects UTF-8, UTF-8 with a byte order mark, UTF-16 little- or big-endian, and Windows-1252. You can override that reading while the tool re-decodes the original bytes, and the preview shows the result before export.

Does it use AI to invent columns from prose?

No. Arbitrary prose has no deterministic table schema. If the source has no supported delimiter, every line becomes one cell and the receipt says that no column boundary was found.

Is the text uploaded?

No. Decoding, parsing, preview, copying, and CSV writing all happen in this browser tab. The full file never leaves your device.