How to Import CSV and Excel Files into Google Sheets
Learn how to import CSV and Excel files into Google Sheets. Covers File menu upload, IMPORTDATA for URLs, and fixing delimiter and encoding issues.
Sheets Bootcamp
March 1, 2026 · Updated June 30, 2026
Importing CSV and Excel files into Google Sheets lets you work with data from any source — exported reports, downloaded databases, or files from colleagues who use Excel. Sheets handles .csv, .xlsx, .xls, .tsv, and .ods formats.
This guide covers the File menu upload method, the IMPORTDATA function for pulling CSVs from URLs, and how to fix the delimiter and encoding issues that come up most often.
In This Guide
- How to Import a File: Step-by-Step
- Import Options Explained
- Import CSV from a URL with IMPORTDATA
- Opening Excel Files Directly
- Common Issues and How to Fix Them
- Tips and Best Practices
- Related Google Sheets Tutorials
- FAQ
How to Import a File: Step-by-Step
Open the import dialog
Go to File > Import. The import dialog opens with tabs for My Drive, Shared with me, Recent, and Upload.
Click the Upload tab.

Upload the file
Drag your CSV or Excel file into the upload area, or click Select a file from your device. Google Sheets accepts these formats:
| Format | Extension | Notes |
|---|---|---|
| Comma-separated values | .csv | Most common export format |
| Tab-separated values | .tsv, .txt | Uses tabs instead of commas |
| Excel workbook | .xlsx | Modern Excel format |
| Legacy Excel | .xls | Older Excel format |
| OpenDocument | .ods | LibreOffice/OpenOffice format |

Choose import settings
Select where to place the data:
- Create new spreadsheet — opens the file as a brand new Google Sheets file
- Insert new sheet(s) — adds the data as a new tab in the current spreadsheet
- Replace spreadsheet — replaces all sheets in the current file
- Replace current sheet — overwrites the active sheet only
- Append to current sheet — adds rows below existing data
For CSV files, the Separator type defaults to “Detect automatically.” This works for most files. Click Import data to finish.

Choose Insert new sheet(s) when you want to keep your existing data and add the import alongside it. This is the safest option since it doesn’t overwrite anything.
Import Options Explained
Separator Type (CSV only)
| Option | When to Use |
|---|---|
| Detect automatically | Default. Works for most files |
| Comma | Standard CSV format |
| Semicolon | Common in European-locale exports where commas are decimal separators |
| Tab | TSV files or tab-delimited exports |
| Custom | Any other character (pipe, colon, etc.) |
Convert Text to Numbers and Dates
When enabled (the default), Sheets tries to interpret values like “2026-01-15” as dates and “1,234” as numbers. Turn this off if Sheets is converting values you want to keep as text — such as product codes like “001234” that lose leading zeros.
If your CSV contains values with leading zeros (ZIP codes, product codes, IDs), turn off “Convert text to numbers, dates, and formulas” during import. Otherwise, Sheets strips the leading zeros and 00123 becomes 123.
Import CSV from a URL with IMPORTDATA
If your CSV is hosted online, pull it directly into Sheets without downloading:
=IMPORTDATA("https://example.com/data.csv") IMPORTDATA fetches the file and populates cells starting from the formula cell. The data refreshes automatically (roughly every hour).
The URL must point to a publicly accessible file. Private URLs or files behind authentication won’t work with IMPORTDATA.
IMPORTDATA has a limit of 50 calls per spreadsheet. If you need more, download the files and import them through the File menu instead.
Opening Excel Files Directly
You don’t have to import Excel files through the dialog. You can also:
- Open from Google Drive: Upload the .xlsx file to Drive, then double-click it. Sheets opens it in compatibility mode. Click File > Save as Google Sheets to convert it.
- Drag into the browser: Drag the .xlsx file directly into the Google Sheets tab. Sheets converts it automatically.
Google Sheets preserves most Excel features during conversion:
| Feature | Supported |
|---|---|
| Formulas | Yes (most standard functions convert) |
| Formatting | Yes (fonts, colors, borders, conditional formatting) |
| Charts | Yes (may need minor adjustments) |
| Pivot tables | Yes |
| Macros/VBA | No — not supported in Google Sheets |
| ActiveX controls | No |
| Power Query | No |
Common Issues and How to Fix Them
All Data in One Column
The separator doesn’t match what Sheets expects. Re-import the file and manually select the correct separator (semicolon, tab, or custom). If you already imported it, select the column, go to Data > Split text to columns, and choose the correct delimiter.
Garbled Special Characters
The file isn’t UTF-8 encoded. Open it in a text editor (VS Code, Notepad++), save it with UTF-8 encoding, and re-import.
Leading Zeros Stripped
Sheets converts “00123” to 123. Re-import with “Convert text to numbers, dates, and formulas” turned off. To fix already-imported data, format the column as plain text and re-enter the values.
Dates in Wrong Format
Sheets interprets dates based on your spreadsheet locale. If 01/02/2026 shows as February 1 instead of January 2, check File > Settings > Locale and set it to match the date format in your source data.
After importing, run a quick check: scan for blank columns (delimiter issue), garbled characters (encoding), and misformatted numbers or dates. Catching these early saves time.
Tips and Best Practices
-
Use “Insert new sheet” for safety. This adds the imported data as a new tab without touching your existing data. You can review it before copying it over.
-
Clean data after import. Imported files often have trailing spaces, inconsistent capitalization, or empty rows. Use TRIM and FIND AND REPLACE to clean up.
-
For recurring imports, use IMPORTDATA. If you pull the same report weekly from a URL, IMPORTDATA refreshes automatically. No manual upload needed.
-
Back up before replacing a sheet. If you choose “Replace current sheet,” the existing data is gone. Make a copy first or use “Insert new sheet” instead.
-
Check formulas after Excel conversion. Most formulas convert, but Excel-specific functions like XLOOKUP (in older Sheets versions), GETPIVOTDATA, or array formulas using Ctrl+Shift+Enter may need adjustments.
Related Google Sheets Tutorials
- Split Text to Columns in Google Sheets - Fix delimiter issues by splitting imported data into columns
- Find and Replace in Google Sheets - Clean up imported data with search and replace
- Remove Duplicates in Google Sheets - Deduplicate imported records
- FILTER Function in Google Sheets - Filter imported data to work with specific subsets
FAQ
How do I import a CSV file into Google Sheets?
Go to File > Import, click the Upload tab, and select your CSV file. Choose where to place the data — new spreadsheet, new sheet, or replace current sheet. Click Import data. Sheets auto-detects the delimiter in most cases.
How do I open an Excel file in Google Sheets?
Go to File > Import and upload the .xlsx or .xls file. Google Sheets converts it automatically, preserving most formulas, formatting, and charts. Some Excel-specific features like macros and ActiveX controls are not supported.
Can I import a CSV from a URL?
Yes. Use the IMPORTDATA function: =IMPORTDATA("https://example.com/data.csv"). This fetches the CSV from the URL and populates the cells. The data refreshes periodically. The file must be publicly accessible.
Why does my CSV import show all data in one column?
The delimiter doesn’t match what Sheets expects. If your file uses semicolons instead of commas, go to File > Import, click the Upload tab, and change the Separator type from “Detect automatically” to “Semicolon.” Re-import the file.
How do I fix encoding issues when importing CSV?
If special characters appear as garbled text, the file is likely not UTF-8 encoded. Open the CSV in a text editor, save it as UTF-8, then re-import. Most modern editors (VS Code, Notepad++) support Save with Encoding > UTF-8.
Can I import multiple sheets from an Excel file?
Yes. When you import an .xlsx file, Google Sheets creates a separate tab for each worksheet in the Excel file. All sheets import automatically — you don’t need to import them one at a time.