How to open a CSV file in Google Sheets
To open a CSV file in Google Sheets, open a sheet, choose File > Import > Upload, select the file, pick where to put the data and click Import data. Google Sheets detects the separator and reads UTF-8 correctly. Below: how to keep codes and IDs exactly as written, how to paste CSV text or load a CSV from a link, and how to save a Google Sheet back as a CSV file.
Last updated
Import a CSV file
- Open Google Sheets and create a blank spreadsheet (or open the one you want to add the data to).
- Choose File > Import, open the Upload tab and select or drag in the CSV file.
- Pick an Import location: Create new spreadsheet, Insert new sheet(s), Replace spreadsheet, Replace current sheet, Append to current sheet or Replace data at selected cell.
- Leave Separator type on Detect automatically, or choose Comma, Tab or Custom (for a semicolon or a pipe).
- To keep zip codes, phone numbers and long IDs as they are, untick Convert text to numbers, dates, and formulas.
- Click Import data.
Quicker for a one-off: drag the CSV into Google Drive, then right-click it and choose Open with > Google Sheets.
Paste CSV text into a sheet
- Copy the CSV text and paste it into cell A1. Each line lands in one cell of column A.
- Click the small clipboard icon that appears and choose Split text to columns, or select column A and choose Data > Split text to columns.
- If the split is wrong, pick the separator (comma, semicolon, custom) in the box at the bottom.
Values that contain commas inside quotes are not always split correctly this way. For those, save the text as a .csv file and import it instead.
Load a CSV from a link
If the CSV is published at a public URL, the IMPORTDATA function pulls it into the sheet and refreshes it about once an hour:
=IMPORTDATA("https://example.com/data.csv")It only works for public files. A file on your computer has to be imported with File > Import.
Look at the CSV first, without importing it
Not sure what is inside, or the file is too big for Sheets? Open it in the CSV Viewer: you see the table, can search and sort it, and the file is not uploaded anywhere. Handy for exports that hold customer or payroll data you would rather not put in the cloud.
Save a Google Sheet as CSV
- Click the tab you want to export.
- Choose File > Download > Comma-separated values (.csv).
Only the current tab is saved, as UTF-8 with commas. For a semicolon or tab file, download it as .csv and change the delimiter with the CSV formatter, or download Tab-separated values (.tsv).
When the import goes wrong
| What you see | Why | Fix |
|---|---|---|
| Everything in column A | Separator not detected | Re-import and choose the separator |
| 02134 became 2134 | Values converted to numbers | Untick the convert option |
| Dates in the wrong order | Spreadsheet locale | File > Settings > Locale, then re-import |
| “This file is too large” | Over 10 million cells | Split the CSV first |
| Rows shifted or merged | Broken quotes in the file | Check it with the CSV Validator |
The CSV splitter cuts large files into parts that fit, and the CSV Validator shows the lines with quoting problems. Using Excel instead? Read How to open a CSV file.
Frequently asked questions
How do I import a CSV into an existing Google Sheet?
Open the sheet, choose File > Import > Upload, select the CSV and set Import location to Insert new sheet(s), Append to current sheet or Replace data at selected cell. Then click Import data.
Why does Google Sheets remove the leading zeros from my CSV?
Sheets converts values that look like numbers. In the import dialog, untick “Convert text to numbers, dates, and formulas” so zip codes, phone numbers and IDs are kept exactly as written.
How do I save a Google Sheet as a CSV file?
Select the tab you want, then choose File > Download > Comma-separated values (.csv). Google Sheets downloads only the current tab, in UTF-8 with commas.
Can Google Sheets open a CSV with semicolons?
Yes. Detect automatically usually finds semicolons. If it does not, choose Custom as the separator type and type a semicolon.
Is there a size limit?
A Google spreadsheet holds at most 10 million cells across all its tabs, so a CSV with 20 columns stops at about 500,000 rows. Split bigger files first, or browse them in a CSV viewer.
How do I open a CSV in Google Sheets on a phone?
Install the Google Sheets app, then open the CSV from Files, Gmail or Google Drive and choose Open with > Sheets. To edit it as a spreadsheet, save it as a Google Sheet from the app's menu.