Convert TXT to CSV
Turn TXT files into CSV. The text read as a table whose fields are separated by commas, semicolons, tabs or vertical bars, whichever splits most of its lines into the same number of fields unless delimiter says which, written as CSV with every cell keeping its text; cells holding a comma, quote or line break are quoted.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop TXT files on the dialor turn it to pick what to do
Text with a separator becomes a CSV table.Each row of text becomes a row of comma-separated values. Prose with no separator does not.
What you get
One CSV file. Text that a separator splits into rows and fields becomes a table that spreadsheets and other programs can read.
The separator between fields is guessed from the rows. Set Delimiter to choose it yourself: Comma, Semicolon, Tab or Pipe.
What stops the conversion
Text that no separator splits into a table, such as prose, fails with
unsupported_elements. There are no columns to find, so there is no table to write.If the text has a separator that is hard to guess, set Delimiter to the one it uses.
Choosing a delimiter
Leave Delimiter out and the character is guessed from the rows. Set it when you know what the text uses.
Spreadsheets in many European locales use semicolons, so Semicolon can be the right choice there. Tab and Pipe cover text split by tabs or vertical bars.
TXT and CSV.What each format is, and the options this conversion takes.
- 01 · delimiter
Delimiter
The character between fields. It is guessed from the rows when left out. Spreadsheets in many European locales use semicolons.
commaA comma.semicolonA semicolon.tabA tab.pipeA vertical bar.
The formats
Plain Text
Plain text with no formatting at all. The smallest, most portable form of a document.
- Extensions
- .txt .log
- MIME type
- text
/plain - Kind
- Text and data
CSV
Rows of comma-separated values. The plainest way to move a table between programs.
- Extensions
- .csv
- MIME type
- text
/csv - Kind
- Text and data
In your code.The same TXT to CSV conversion through the API, for your app or your agent.
$ cv convert report.txt report.csv$ cv convert report.txt report.csvQuestions.What people ask about TXT to CSV.
Yes, if the text is split into fields by a separator. Files with the log extension are read as plain text like TXT files. A log with no separator in its lines fails with unsupported_elements.
No. Text that no separator splits into a table, such as prose, fails with unsupported_elements.
Comma, Semicolon, Tab and Pipe. If you set none, the delimiter is guessed from the rows.
The conversion gives one file for the text you send. To combine files first, you can merge TXT before converting.