How to Open a CSV File in Notepad

To open a CSV file in Notepad, right-click the file in File Explorer, select Open with, and choose Notepad. You’ll see the raw text of the file, with each value separated by a comma and each record on its own line. To make Notepad the default for every CSV file, go to Settings > Apps > Default apps, search for .csv, and pick Notepad.

These steps cover the Notepad app in Windows 11. They also match Windows 10, although Microsoft ended Windows 10 support on October 14, 2025. The default-app steps follow Microsoft’s Change default apps in Windows article.

Why Open a CSV File in Notepad?

A CSV (comma-separated values) file is plain text. Each line is a record, and commas separate the columns. Excel and Google Sheets turn that text into a grid and may change how numbers, dates, and leading zeros look. Notepad shows exactly what is in the file, including the commas, quotation marks, and blank lines. That makes it useful for checking why a file won’t import, fixing a header row, or making a quick edit without a spreadsheet changing anything behind your back.

Notepad is the wrong tool when you need to sort, filter, or add up columns. For that, open the file in a spreadsheet instead; you can also set CSV files to open in Excel by default.

How to Open a CSV File in Notepad With Open With

  1. Open File Explorer and find the CSV file.
  2. Right-click the file and select Open with. In Windows 11 it is in the main right-click menu. If you are using the older menu under Show more options, it is there too.
  3. Choose Notepad. If it isn’t listed, select Choose another app, pick Notepad, and select Just once.
Sample CSV file open in Notepad showing a header row and comma-separated values
Notepad displays a CSV as comma-separated text. This file uses sample data.

The file opens in Notepad as plain text. Choosing Just once leaves your default app for CSV files unchanged, so double-clicking still opens Excel or whatever app you used before. If long rows are hard to follow, you can turn word wrap on or off in Notepad.

How to Open a CSV File From Inside Notepad

  1. Open Notepad from the Start menu.
  2. Select File > Open, or press Ctrl + O.
  3. Change the file type menu next to the file name from Text documents (*.txt) to All files (*.*). CSV files stay hidden until you do.
Notepad Open window with All files selected so a CSV file appears in the list
Switch the file type to All files to see CSV files in Notepad’s Open window.
  1. Select the CSV file and click Open.

The CSV opens in Notepad. In Windows 11, Notepad opens each file in its own tab, so you can keep two CSV files open side by side to compare their header rows. You can also drag the file from File Explorer onto an open Notepad window.

How to Always Open CSV Files in Notepad

  1. Select Start > Settings > Apps > Default apps.
  2. In the search box, type .csv and select the result.
  3. Choose Notepad from the list of apps and confirm with Set default if Windows asks.

Double-clicking any CSV file now opens it in Notepad. A quicker route when the file is in front of you: right-click it, select Open with > Choose another app, pick Notepad, and select Always. You can set defaults by file type or by app, and changing default apps in Windows 11 covers both routes.

To switch back, repeat the steps and choose Excel or another app. If you use Excel most of the time, a good compromise is to keep Excel as the default and use Open with > Notepad only when you need to see the raw text.

How to Read a CSV File in Notepad

A few patterns explain most of what you see:

What you see in Notepad What it means
Name,Email,Phone on the first line The header row: the column names
Two commas together, such as Smith,,555-0100 An empty field; the commas keep the columns lined up
A value in quotation marks, such as “Portland, OR” A value that contains a comma; the quotes keep it in one column
Two quotation marks together inside a quoted value One literal quotation mark in the data
Semicolons instead of commas A file made with a different list separator, common in some regions

The status bar at the bottom of the Notepad window shows the line and column where your cursor sits, the line-ending type, such as Windows (CRLF), and the encoding, such as UTF-8. If you don’t see it, turn on Status bar in the View menu. The line number is handy when an import tool reports an error “on line 214.”

How to Edit and Save a CSV File in Notepad

Before you change anything, make a copy of the file in File Explorer so you can go back if something breaks.

  • Keep one record per line, and press Enter only at the end of a record.
  • Separate every value with a comma. If a field is empty, keep its comma so the other columns don’t shift.
  • Put quotation marks around any value that contains a comma or a line break, and type two quotation marks for a quotation mark inside that value.
  • Don’t add spaces after the commas unless the data should have them; many programs keep the space as part of the value.
  • Save with Ctrl + S. If you use Save as, make sure the name still ends in .csv, and set Save as type to All files so Notepad doesn’t add .txt.

The file keeps the same structure, so Excel and other programs can still import it. Newer versions of Notepad in Windows 11 include a formatting toolbar for bold text, lists, and headings, which works with Markdown-style text. Don’t use it in a CSV file, because it adds formatting symbols to the data. Formatting can be turned off in Notepad’s settings.

If your CSV holds a contact list, you can import the list into Outlook contacts next.

If you have several exports with the same columns, you can merge the CSV files into one file after you check their header rows.

Rules for editing a CSV file in Notepad without breaking it
Illustration: rules for editing a CSV file in Notepad.

Choose the Right Encoding When You Save

Encoding is the way a file stores letters as bytes. Plain English letters look the same in every encoding, but accented letters, symbols, and other alphabets do not. Notepad’s Save as window has an Encoding menu with choices such as ANSI, UTF-8, UTF-8 with BOM, UTF-16 LE, and UTF-16 BE.

  • UTF-8 is the usual choice for CSV files that go to websites, databases, and most import tools.
  • UTF-8 with BOM adds a small marker at the start of the file. Excel opens a UTF-8 CSV normally when it was saved with a BOM, so choose this when the file goes back to Excel and contains accented letters. See Microsoft’s opening CSV UTF-8 files correctly in Excel.
  • Keep the original encoding shown in the status bar if you are only fixing a typo and the file already imports correctly.
Notepad Save as window with Encoding menu open and Save as type set to All files
Pick the encoding and keep Save as type on All files when saving a CSV.

Open the Edited File in Excel Without Losing Data

Double-clicking a CSV in Excel applies Excel’s own guesses to every column, which can drop leading zeros from ZIP codes or read dates the wrong way. To control this, open a blank workbook and use Data > From Text/CSV, pick the file, and check the preview and the Delimiter setting before you load it. Microsoft’s Import or export text (.txt or .csv) files article walks through each import option.

If the CSV Doesn’t Show in Notepad

  • The CSV doesn’t appear in Notepad’s Open window: change the file type menu to All files (*.*).
  • Notepad isn’t in the Open with list: select Choose another app and scroll the full list. If Notepad is missing everywhere, it may have been uninstalled; reinstall Notepad from the Microsoft Store.
  • Accented letters look garbled: the file uses a different encoding from the one Notepad detected. Check the encoding in the status bar, and if you save, pick the encoding the receiving program expects, as described above.
  • The file saved as data.csv.txt: Notepad added .txt. Show file name extensions in Windows so you can see the full name, then rename the file so it ends in .csv only.
  • The file is very large: Notepad can be slow with huge files. A spreadsheet program or a code editor may handle them better.
  • Values use semicolons: some programs and regions use semicolons instead of commas. Notepad shows whatever the file uses; tell the importing program which separator to expect rather than replacing every semicolon by hand.
  • Rows look broken across several lines: word wrap is on. Turn it off in Notepad’s View menu, or Format menu in older versions, to see one record per line.

CSV in Notepad Questions

Will opening a CSV in Notepad change the file?

No. Notepad only changes the file if you edit it and save. Opening the file in Excel and saving it can change how numbers and dates are stored.

Can Notepad show a CSV file as a table?

No. Notepad is a plain text editor, so it shows the commas rather than columns. Use Excel, Google Sheets, or another spreadsheet program to see a grid.

Can I open a CSV in Notepad on a Mac?

Notepad is a Windows app. On a Mac, use TextEdit: right-click the file and choose Open With > TextEdit.

Can I create a new CSV file in Notepad?

Yes. Type a header row, then one record per line with commas between the values. Use File > Save as, set Save as type to All files, and give the file a name that ends in .csv.

Can I change the commas to another separator in Notepad?

Yes, with Edit > Replace, but only when no value contains a comma. A safer method is to convert the CSV to pipe delimited in Notepad.

Once the file looks right, import it into the program you need, or reopen it in Excel with Data > From Text/CSV to check every column.