Download Article
The easiest and best ways to open and edit CSV files on a PC or Mac
Download Article
Comma-separated value (CSV) files contain data from a table in a plain text format, separate with commas. The best way to open a CSV file is to import it into a spreadsheet application like Excel or Google Sheets. This wikiHow teaches you how to properly import CSV files into Microsoft Excel, Google Sheets, and OpenOffice Calc.
Quick Steps
- Create a new blank Excel file.
- Click the Data tab.
- Select From Text/CSV .
- Select the CSV file and click Import .
- Click Load .
Steps
-
Create a new blank workbook in Microsoft Excel. Open Excel, then click Blank Workbook to start a new file.
- Follow this method to properly open your CSV file without losing formatting and other data.
- These steps will work in Microsoft Excel 365, 2019, and 2016.
-
Click the Data tab. It's at the top of Excel. [1] X Trustworthy Source Microsoft Support Technical support and product information from Microsoft. Go to sourceAdvertisement
-
Click From Text/CSV . It's on the left side of the toolbar. This opens the Import window.
-
Select the CSV file and click Import . This launches the Text Import Wizard, which lets you customize how the file is imported into Excel.
-
Preview and edit the data table, if needed. You'll see a preview of how the CSV will look once opened in Excel. The commas in the file delimit the data so that it's separated into rows and columns automatically. You usually won't have to make any changes to the settings, but if the data isn't displaying properly, it may be delimited with a different symbol, like a semicolon or pipe.
-
Click the Load button. This opens the CSV file for viewing and editing in Microsoft Excel.
- If you make changes to the data and want to save it as an Excel file, click the File menu, select Save As , and make sure "Excel Workbook (*.xlsx)" is selected as the file type.
Advertisement
-
Open Excel and click Blank Workbook . It's in the middle section. This creates a new blank spreadsheet.
- The simple way to open a CSV file is to click Open on the welcome screen, select your CSV file, and then click Open . However, this may not display the data in the CSV as intended. Follow this method to properly open your CSV file without losing formatting and other data.
-
Click the Data tab. It's at the top of Excel.
-
Click From Text . It's on the left side of the toolbar. This opens the Import window.
-
Select the CSV file and click Import . This launches the Text Import Wizard, which lets you customize how the file imports into Excel.
-
Select Delimited . It's the first option in the upper-left corner of the window.
-
Click Next to continue.
-
Check the box next to "Comma." If any other items are checked in the "Delimiters" section, remove those checkmarks now.
-
Click Next to continue.
-
Select all of the columns in the preview. Here's how:
- Click the header of the first column to select it.
- Scroll to the last column list using the scrollbar if it isn't visible.
- Hold down the Shift key as you click the last column header. All columns are now selected.
-
Select Text as the column data format. This is in the upper-left corner.
-
Click Finish . Now you'll see your CSV file without any unexpected changes to its format.
Advertisement
-
Go to https://docs.google.com/spreadsheets . If you're already signed in to your Google account, this will display Google Sheets , the free Google alternative to Excel. If not, follow the on-screen instructions to sign in now.
- Google Sheets is free, but you must have a Google account to use it.
-
Open a new blank Google Sheets workbook. Go to https://docs.google.com/spreadsheets . If you're already signed in to your Google account, this will display Google Sheets, the free Google alternative to Excel. If not, follow the on-screen instructions to sign in, then click + Blank spreadsheet to create a new file.
-
Click the File menu and select Import . The "Import file" window will open.
-
Click the Upload tab. This is the tab you'll need to be on to upload the file from your computer.
-
Select or drag the file. You can drag the CSV file to the middle of the dotted box to start the upload, or click Browse to select it from your computer.
-
Select Replace spreadsheet on the "Import file" window. If it's already selected, you can leave it alone.
-
Select Detect automatically under "Separator type." This tells Sheets to detect the delimiter used to separate the data into rows and columns.
- In CSV files, delimiters are usually columns, but they may vary by region and purpose. Sometimes you'll see pipe symbols or semicolons instead.
-
Choose whether to convert text to numbers, dates, and formulas. The option is selected by default, but you can deselect it if you don't want to transform the data in any way.
-
Click the green Import data button. This imports the CSV into sheets as it was intended to be seen.
Advertisement
-
Open OpenOffice Calc. If you have OpenOffice, you can use Calc to open a CSV file.
- If you don't have Microsoft Office and prefer installing an app on your computer rather than using Google Sheets, OpenOffice Calc is a great free alternative. You can download it https://www.openoffice.org/download .
-
Click the File menu and select Open . This menu is in the upper left corner and will open a window to browse for files on your computer. [2] X Research source
-
Select Text CSV in the "File type" menu. You may have to scroll a bit down the list to find it.
-
Select a CSV file and click Open . This opens the "Text Import" screen.
-
Select the "Separate By" radio button. This is under the “Separator Options” header.
-
Select the "Comma" checkbox. This tells Calc to use the commas in the CSV file to delineate individual columns.
- If the data is using a different delimiter, select that instead. If the delimiter character isn't in the list, enter it into the "Other" box.
-
Click OK . The contents of your CSV file will now appear correctly in Calc.
Advertisement
Expert Q&A
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement
Video
Tips
- You can also open CSV files in a text editor if you just want a quick glance at their contents, but the files will not display in a super-readable format.Thanks
Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement
References
About This Article
Article Summary
X
1. Open a blank worksheet in Excel.
2. Click the Data
tab and select From Text
.
3. Select the CSV file and click Import
.
4. Select "Delimited" and choose Next
.
5. Check the box next to "Comma" and click Next
.
6. Select all of the columns in the preview.
7. Click Finish
.
Did this summary help you?
Thanks to all authors for creating a page that has been read 401,877 times.
Advertisement