Skip to main content

Notepad to CSV: Free TXT to CSV Converter Online

Paste your tab-separated, comma-separated, or space-delimited text data into the editor below to convert plain text into a properly formatted CSV file ready for download. Choose your input delimiter, preview the structured output in a live table, and export clean comma-separated values that import directly into Microsoft Excel, Google Sheets, MySQL databases, Python pandas scripts, and any data analysis tool—all processed locally in your browser with no data uploaded to any server. Keep drafts and to-do lists in our online notepad editor, ready whenever you are.

Supports tab, comma, semicolon, pipe, or space-separated text data.

0
Rows
0
Columns
0
Cells
-
Input Delimiter
Input Format
Output Options
File Settings

Paste your text into this free online Notepad to CSV tool and the TXT to CSV result appears as tidy rows and columns, ready for Excel, Google Sheets or a database. It works on any plain text file, and you can download the CSV file the moment the preview looks right, with no signup.

How to Convert TXT to CSV Online for Free

You can convert TXT to CSV online and for free in four short steps, entirely in your browser:

  1. Paste or drag and drop: copy your text out of Notepad, or drop a .txt file onto the input pane.
  2. Check the separator detected by the tool, and choose another delimiter if it guessed wrong.
  3. Tick first line is a header when your top row names the columns, then watch the live preview update.
  4. Press Download to save the CSV, or copy it straight into a spreadsheet.

Each conversion is a fresh parse of your pasted text, so you can change an option and convert again as often as you like. Because the output uses a standard format, you can import it into any spreadsheet or database afterwards, and the whole process stays free. Our pdf to notepad converts PDF content back into editable plain text.

Notepad to CSV: Paste, Preview and Download Columns

A text editor such as Notepad stores plain-text characters and nothing more: no cells, no columns, only line endings. The converter supplies the structure by treating each line as one of your records and cutting it into fields wherever the separator falls. Open the Table tab to see every value in its own cell, because a wrong split is far cheaper to fix on screen than inside a finished workbook. That free online preview is the main reason to use a converter instead of simply renaming a file.

Auto-detect does the first pass of delimiter detection for you, then hands over the structured data so you can override it. The result is tabular data with the same number of rows and columns you expect, and every record keeps its position, so line 2 of your text becomes row 2 of the file.

Separators the TXT to CSV Converter Understands

A good TXT to CSV converter recognises the separators real files use, not just commas. This table shows what to expect:

Your text looks likeSeparatorNotes
Values copied from a sheetTabThe most reliable choice, since values rarely contain a tab
Database output with borders, such as MySQL or psqlPipeBorder lines and outer pipes are dropped (markdown table and pipe tables included)
European exportsSemicolonHandy when decimals use a comma
Quoted fieldsCommaThe comma delimited standard, quoted values may contain the separator
Report-style textAligned columnsSplits by position, so New York stays in one cell

The same delimiter applies to every line, and the max columns setting keeps the last column intact when it holds a long message. Tab delimited input is the safest choice, and the CSV separator you choose for the output can differ from the one you read.

Timeline of character positions 0, 7, 21, 32 and 37 where the five columns of the text file begin
Aligned columns start at fixed character positions.

Fixing Plain Text Problems: Header, Rows and Short Lines

Most failed conversions trace back to a handful of causes, and each has a quick fix:

  • Too many columns: when the last column is free text, such as a log message, cap the max columns so the rest stays together.
  • Short rows: a line with fewer values gets empty cells, so every row ends with the same count. Turn on fill short rows to keep that.
  • Titles above the data: use skip first lines, or skip empty lines for stray blanks.
  • Column A holds everything: in many European locales Excel opens a CSV expecting semicolons, so switch the output separator.

Keep Leading Zeros in Excel

ZIP codes, phone numbers and IDs like 00417 lose their zeros when Excel opens a CSV file as numbers. Enable keep leading zeros, or import the column as text instead. Use the text compare online to track changes between document versions.

Dumbbell chart showing five SKUs losing leading zeros when Excel reads the CSV column as numbers
Excel shortens each SKU unless you keep leading zeros.

What Makes a Valid CSV File

A CSV file follows RFC 4180, the written standard for the format: one record per line, a comma between fields, and double quotes around any value holding a comma, a line break or a quote. A quote inside a quoted field is doubled, so special characters never spill into the next column. Line endings are LF or CRLF, and both open fine. Quoted fields are the rule most hand-made files break, and a free online converter applies them automatically, which keeps the format valid.

Save a Text File as CSV from Notepad

Without any converter, you can still turn a text file into a CSV when its values already sit on commas. On Windows or Mac, open the text file, choose Save as, type a name ending in .csv and set the file type to All files. This only renames the format, so nothing gets split or quoted for you, and the conversion succeeds only if the commas are already correct. When they are not, convert the text file with the online tool first, then save the result and import it wherever you need it.

Import Delimited Text into Excel or Google Sheets

Microsoft Excel can open a text file directly: go to File > Open and pick Text Files. A .txt starts the Text Import Wizard (some guides call it the import text wizard), while a .csv simply opens in a new workbook. To import data into an existing worksheet instead, use the Data tab, where the From Text/CSV command and its Import Data dialog pull an external data range into the cell you choose. In Google Sheets, a free online option, use File > Import and choose the separator; LibreOffice offers a similar dialog. If your text needs splitting first, run it through the converter and open the resulting CSV instead.

Import a Text File with Power Query

After you pick the file, press Load to to choose a table, or Transform Data to clean the columns first.

Change the Delimiter in the Import Wizard

Step 2 of the wizard sets the delimiter, and the preview shows the effect immediately before you click Finish.

Converting a Bank Text Export to a Spreadsheet-Ready CSV

A treasurer for a rowing club has to prove that 412 card payments match the bank's closing figure of 537,954.81 euros. The bank only offers a text file export that opens in Notepad, semicolon-separated, with decimal commas such as 1.852,44. The decision is simple: which delimiter makes Excel sum the right column when she runs the notepad to csv conversion?

She pastes the plain text and enters the options in this order: separator semicolon, first line is a header, a six-column cap (max columns), keep leading zeros on, because payment references like 0071248 must stay intact. The live preview shows 412 rows by 6 columns, and she downloads the CSV file. In Excel she sums the amount column and gets 537,954.81, matching the bank to the cent.

Then comes the sensitivity rerun, changing one input only. With the separator set to comma, the only commas in each line are the decimal ones, so every row splits in two at the amount:

Separator chosenColumns per rowResult
Semicolon6Amount column sums to 537,954.81
Comma2No amount column; the left field holds the reference, date, payee, memo and whole euros as one string

What stands out is the column count: 2 where the bank's own layout has 6. I would watch that number first, because a preview that narrow, with no aligned columns, is the clearest sign the delimiter is wrong. Any txt to csv converter depends on that one choice, and the text import wizard in Excel asks the same question.

One edge case needs care. The memo field sometimes contains a semicolon, which would add a column to that line, and the converter pads short rows with empty cells but cannot shrink the long ones. Capping the columns at 6 keeps the memo text together in the final field, and quoted fields with double quotes protect any value that must contain a separator. Saving as UTF-8 keeps accented letters in payee names intact. Next, she compares the row count against the 412 payments on the bank statement, far below Excel's limit of 1,048,576 rows, and files the CSV with the reconciliation.

Convert Text to CSV for European Excel: Semicolon Lists

If you convert text to CSV for a colleague in Germany or France, expect the list separator in their regional settings to be a semicolon, because the comma is their decimal separator. Change it under Excel Options or in Windows Region settings, or choose a semicolon when you download. That list separator is also what Excel writes when it saves a CSV, so the setting matters on export as well as import, and it changes the CSV format your file ends up in.

Comma-Separated Values and Safe Export from Excel

Once the converter has given you a CSV, the same Save As route re-saves it after you edit it in Excel: pick CSV (Comma delimited) to export one worksheet. Comma-separated values suit data exchange between spreadsheet software, databases and analytics platforms because every tool can import them, which is why the converter's output opens anywhere.

Bulk and Batch Text Converter Options in Your Browser

A free online text converter in your browser usually handles one pasted block at a time (file size is limited only by your device memory), while upload tools offer bulk and batch conversion for many files, sometimes over 1 GB. Cloud services send your file to a server, the command-line route uses awk or sed to write the CSV yourself, and text copied from a PDF, JSON or XML export usually needs cleaning before it will convert to CSV well. A PDF table pasted as text, for example, often arrives with ragged spacing that suits the aligned-columns setting. Pick the route that matches the size of your job.

Privacy When You Convert a TXT File to CSV

If you convert a TXT file to CSV in the browser, nothing is sent to a server and there is no upload to delete afterwards. Server-side online services state a retention window, often a few hours, so read it before you process customer data. A txt file to CSV job that stays on your device is the safer default.

Encoding for Comma Separated Values Files

Text is just bytes until a character encoding says what they mean. ASCII covers English letters, while UTF-8 (a Unicode scheme) covers accents and symbols, so UTF-8 encoding is the safe export setting whenever you convert text with accents. The text/csv MIME type describes the result, and the data keeps its format and meaning when it is copied between systems or when you import it again.

Add a BOM for Accented Letters

Excel may show accented letters wrongly unless the file starts with a BOM, so enable add BOM in the download options.

Worked Example: Notepad to CSV with Aligned Columns

Here is a stock report saved in Notepad, with values lined up by spaces:

SKU    Item          Warehouse  Qty  Note
00417  Cable, USB-C  Leeds      126  reorder
00532  Desk lamp     Leeds      48   ok
01088  Headset       Bristol    7    low stock
01203  Monitor arm   Cardiff    63   ok
01377  Webcam "Pro"  Bristol    19   ok

Tabs, pipes and semicolons find one column on every line, and the comma finds two on line 2, so none of them fits. Aligned columns finds 5 columns on all 6 lines by reading where each column starts. The output has 6 rows, a quoted "Cable, USB-C", a doubled-quote "Webcam ""Pro""" and the SKU zeros kept. It is 198 bytes against 254 bytes of source text.

Grid of columns found per line for tab, pipe, semicolon, comma, single space and aligned columns, where only aligned columns gives 5 on every line
Only aligned columns gives 5 columns on all six lines of the report.