Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Import CSV UTF-8: How to Fix Special Characters

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To import a CSV file with UTF-8 encoding into Excel and preserve special characters, use the Data > Get Data > From File > From Text/CSV path and select 65001: Unicode (UTF-8) as the File Origin. This method prevents the common issue where accented letters, symbols, or non-Latin characters are replaced by garbled text or question marks, which typically happens when you simply double-click a CSV file to open it.

What You'll Need

  • A Microsoft Excel installation (Office 365, Excel 2016, 2019, or 2021).
  • A CSV file saved with UTF-8 encoding (usually exported from a database, a web application, or a CRM).
  • Administrative permissions to save the resulting file to your local drive.

Step-by-Step

  1. Launch Excel: Open a new, blank workbook. Do not open the CSV file by double-clicking it in your file folder, as this forces Excel to use the system's default encoding (often ANSI or Windows-1252), which ignores UTF-8 markers.
  2. Access the Data Tab: Click on the Data tab in the top ribbon menu. Note that menu labels may differ slightly depending on your version of Excel or regional language settings.
  3. Initiate the Import: In the Get & Transform Data group, click on Get Data, then hover over From File and select From Text/CSV.
  4. Select Your File: A file browser window will appear. Navigate to the folder where your UTF-8 CSV is stored, select the file, and click Import.
  5. Configure the Import Settings: A preview window will open. This is the most critical step for maintaining data integrity. Look for the dropdown menu labeled File Origin. Scroll through the list or type to find 65001: Unicode (UTF-8). Once selected, observe the preview window; the garbled characters (like © or €) should now appear as the correct symbols.
  6. Verify the Delimiter: Check the Delimiter dropdown. Most CSVs use a comma, but some use semicolons or tabs. Ensure the preview shows your data neatly organized into columns. If the data is all in one column, change the delimiter until the grid looks correct.
  7. Check Data Types: Look at the Data Type Detection dropdown. Usually, Based on first 200 rows is sufficient. This tells Excel whether a column is a number, a date, or text.
  8. Load the Data: You have two main options at the bottom of the window: Load and Transform Data. If the preview looks perfect, click Load to bring the data directly into your sheet. If you need to remove columns, filter rows, or change date formats before importing, click Transform Data to open the Power Query Editor.
  9. Finalize and Save: Once the data is loaded into the spreadsheet, go to File > Save As and save the workbook as an Excel Workbook (.xlsx). Saving it back as a CSV may strip the formatting or encoding settings you just applied.

Common Mistakes

The most frequent error is the "Double-Click Trap." Many users simply double-click a .csv file in Windows Explorer. While this is fast, it bypasses the import wizard entirely. Excel then guesses the encoding based on the operating system's regional settings. If your file contains characters from a different language or specific symbols, they will be corrupted instantly. Once you save a file after opening it this way, the corruption becomes permanent in that file.

Another common mistake is choosing the wrong delimiter. In some European regions, Excel expects a semicolon (;) as the default separator because the comma is used as a decimal point. If you import a standard comma-separated file without specifying the delimiter in the import wizard, all your data will end up in a single column, making the sheet unusable for analysis.

Users also frequently forget to save the final result as an .xlsx file. If you keep the file in .csv format, Excel does not store the column widths, formulas, or specific encoding preferences. Every time you reopen the file, you are essentially starting the import process over again, risking the return of the encoding errors.

Tips

For those handling massive datasets, using the Transform Data (Power Query) option is highly recommended. Power Query allows you to perform "cleaning" steps—such as removing null values, splitting columns, or changing case—without altering the original source file. These steps are recorded as a script, meaning if the CSV file is updated with new data, you can simply click Data > Refresh All to apply the same cleaning steps to the new data automatically.

If you are exporting data from a system and have the choice, always choose "UTF-8 with BOM" (Byte Order Mark). The BOM is a small invisible marker at the start of the file that tells programs like Excel exactly which encoding is being used, which can sometimes allow the double-click method to work correctly.

To verify if a file is truly UTF-8 before importing it into Excel, you can open it in a text editor like Notepad++ or VS Code. These editors explicitly show the encoding in the bottom status bar, allowing you to confirm the file origin before you spend time troubleshooting the Excel import settings.

Troubleshooting

If the characters still appear garbled after selecting 65001: Unicode (UTF-8), the file may not actually be UTF-8. Try selecting 1252: Western European (Windows) or UTF-16. If the file was generated by an older legacy system, it might be using a specific regional code page. If you see a pattern of consistent replacements (e.g., all accented 'e's become a specific symbol), it is a sign of an encoding mismatch.

If the import process hangs or crashes, check the file size. Extremely large CSVs (hundreds of megabytes) can overwhelm Excel's memory if you try to load them directly. In this case, use Transform Data to filter the rows or remove unnecessary columns before loading the data into the worksheet. This reduces the memory footprint and prevents the application from freezing.

If you see "#VALUE!" or "#REF!" errors after importing, it is likely a data type conflict. For example, Excel may be trying to treat a column of ID numbers as scientific notation or dates. To fix this, go back to the Transform Data window, right-click the column header, select Change Type, and choose Text. This ensures that leading zeros (like in zip codes) are not deleted by Excel's auto-formatting.

Frequently Asked Questions

Why does my CSV look fine in Notepad but weird in Excel?

Notepad is designed to handle various text encodings flexibly. Excel, however, tries to map characters to a specific grid and data type. If Excel uses the wrong encoding map (like ANSI instead of UTF-8), it interprets the binary data of the UTF-8 characters as different, incorrect symbols.

Can I convert a CSV to UTF-8 after it's already in Excel?

You cannot "convert" the encoding of a file that is already open and corrupted. You must go back to the original source file and re-import it using the Get Data method. Once the data is correctly displayed in Excel, you can save it as an .xlsx file to preserve the characters.

What is the difference between UTF-8 and ANSI?

ANSI is a legacy encoding that varies by region and can only represent a limited set of characters (usually one language). UTF-8 is a universal standard that can represent almost every character from every language in the world, making it the standard for web and modern data exchange.

Does this method work for Mac users?

Yes, the Data > Get Data (or From Text) workflow is similar on macOS, though the menu layout may vary slightly. The key is to find the File Origin or Character Encoding dropdown and select Unicode (UTF-8).

Will importing as UTF-8 change my numbers or dates?

Encoding only affects how characters are read, not the values themselves. However, Excel's Data Type Detection might change how those values are displayed. Always check the preview window to ensure your dates and numbers are formatted as expected before clicking Load.