Front-End & Daily

How to handle UTF-8 CSV in Excel (Loading and Saving)

How to handle UTF-8 CSV in Excel (Loading and Saving)

This article explains how to load UTF-8 CSV files into Excel and how to save them in UTF-8 format.

The UTF-8 CSV file used in this article was created using Cassava Editor.

Cassava Editor CSV file

This CSV file can be downloaded here. Please feel free to use it.

Table of Contents

How to Load

Here's how to load a UTF-8 CSV file into Excel.

If you open it directly in Excel, the characters will be garbled, so a little trick is needed.

Excel UTF-8 CSV Garbled Characters

First, create a new sheet in Excel and click 'From Text/CSV' from the 'Data' tab.

Excel Data From Text/CSV

Alternatively, click 'Get Data > From File > From Text/CSV'.
Depending on the version, only this option might be available.

Excel Get Data From File From Text/CSV

Select the CSV file you want to open and click 'Import'.

Excel CSV Import

A preview will be displayed.
If there are no issues, click 'Load'. However, this time we will transform the data (explained later).

Excel CSV Import Preview

This time, there are unnecessary header rows like 'Column1, Column2...' in the first row, so we will remove them.
Click 'Transform Data'.

Excel CSV Import Transform Data

The Power Query Editor will open, so click 'Use First Row as Headers'.

Excel CSV Import Use First Row as Headers

The unnecessary first row has disappeared.
Click 'Close & Load' in the top left.

Excel CSV Import Close & Load

The data has been successfully loaded.

Excel CSV Import

Finally, when saving as CSV, please note that CSV does not support text formatting, multiple sheets, or formulas.

How to Save

Here's how to save data edited in Excel as a UTF-8 CSV file.

From 'File > Save As' in the top left of Excel, select your desired location.

Excel Save As

Select 'CSV UTF-8 (Comma delimited)(*.csv)' as the file type and save.

Excel Save File Type CSV UTF-8 (Comma delimited)(*.csv)

An alert will appear, so click 'OK'.
If you're concerned, you might want to keep a copy as an Excel file (.xlsx).

The selected file type does not support workbooks containing multiple sheets.

You can now save it as a UTF-8 CSV file.

How to Save with BOM

Furthermore, if you save it as UTF-8 with BOM, you can open it directly in Excel next time.

It also reduces the likelihood of garbled characters in files other than Excel.

However, please note that in some system requirements, saving without BOM might be preferable.

Open the CSV file saved in the previous section with Notepad.
(If it doesn't appear in the list, select Notepad from 'Choose another app'.)

Open CSV file with Notepad

Once opened in Notepad, click 'Save As'.

Notepad Save As

Set the encoding to 'UTF-8 (with BOM)' and save.

Encoding UTF-8 (with BOM)

You can now save it as a UTF-8 CSV file with BOM.

Comments

  • Anonymous

    Thank you for this very useful article.
    I think it would be even more helpful if you could also include how to create a CSV with BOM as a countermeasure against garbled characters when opening UTF-8 CSV files in Excel!

  • Owner

    Thank you for your valuable feedback.

    I have updated the article accordingly!

After reviewing the content, personal information will be omitted before publishing.

Enter your name and email address

Please enter if you would like a reply by email.

The personal information provided will not be disclosed and will only be used for replies.

It will be sent directly. Please confirm and click 'Send'.

If this article was helpful, your support would be greatly appreciated!
All support received will go toward my child’s upbringing.

Author's Baby Registry (Amazon)

Support me on OFUSE

Or support me by buying something through the buttons below
(You don't have to buy the linked product.)

Support me via Amazon

Support me via Rakuten

Support me via Yahoo! Shopping

PR

As an Amazon Associate, Ken earns from qualifying purchases.

Share

Share on Twitter Share on Facebook Share on LINE Share on Hatena Bookmark