Convert TXT to CSV
Convert delimited plain text into properly quoted CSV, live as you type, download or copy the result.
name,age,city Ada,30,London Grace,28,New York
Converted live as you type. Fields containing a comma, quote, or newline are automatically quoted per the CSV standard.
Need the opposite? Text to CSV Converter
What is Convert TXT to CSV?
Paste plain text where each line is a row and columns are separated by a tab, comma, semicolon, pipe, or space, and get valid CSV output instantly. Fields containing a comma, quote, or line break are automatically quoted per the CSV standard, so the output opens correctly in Excel, Google Sheets, or any tool that reads CSV. Everything happens in your browser; your data is never uploaded anywhere.
How to Use the TXT to CSV Converter
- 1
Paste the Delimited Text: Enter text where each line is a row, separated by a tab, comma, semicolon, pipe, or space.
- 2
Choose the Separator: Select the delimiter matching your source text from the dropdown.
- 3
Read the CSV Result Instantly: The properly quoted CSV appears automatically.
- 4
Copy or Download: Use the copy button or download the file directly.
How the Mapping Works
Each line of the pasted text becomes one row in the output. The chosen separator (tab, comma, semicolon, pipe, or space) marks where one column ends and the next begins within that line. Once split, any resulting field containing a comma, a double quote, or a line break gets wrapped in double quotes, with any quote characters inside it doubled, following the standard CSV escaping rule so the file opens correctly when read back.
Example
Input (pipe-separated):
name|role|note
Alice|Engineer|On track
Bob|Designer|Behind, needs review
Output CSV:
name,role,note
Alice,Engineer,On track
Bob,Designer,"Behind, needs review"
Bob's note is quoted because splitting on the pipe left a comma inside that field, which the CSV format requires to be quoted to avoid it being read as an extra column.Frequently Asked Questions
Common questions about Convert TXT to CSV.