Data Import & Export

Set Excel's Default Encoding to UTF-8 Permanently

Elise WilliamsElise Williams Nov 13, 2026 868 views

Question details

The user wants to set Microsoft 365 Excel to use UTF-8 as the default encoding for text imports permanently, because Excel does not offer this as a standard option.

Product
Microsoft 365 Excel
Device & OS
Windows
Scenario
The user frequently imports text or CSV files encoded in UTF-8 and wants Excel to open them correctly by default.
Observed behavior
Microsoft 365 Excel does not provide a simple permanent UTF-8 option in the normal Excel Options, so text imports may fall back to the system locale or ANSI encoding.
Before you start

Before editing the Windows registry, back up the registry from Registry Editor by selecting File > Export. Also confirm that the Excel 16.0 Options key exists under HKEY_CURRENT_USER\Software\Microsoft\Office, and close any running Excel workbooks.

Solution 1Recommended

Set Excel's Default UTF-8 Encoding with a Registry Value

Use this method when Microsoft 365 Excel does not keep UTF-8 as the default for text or CSV imports and you are comfortable modifying the Windows registry.

Microsoft 365 Excel does not expose a permanent UTF-8 default in Excel Options. The registry entry tells Excel which code page to use as the default for text imports, but it must be created exactly as documented and requires restarting Excel.

1
Back up the registry

Press Win+R, type regedit, and press Enter. In Registry Editor, choose File > Export, set Export range to All, name the backup file, and save it before making any changes.

2
Open the Excel Options registry key

Navigate to HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Excel\Options. If the Options key does not exist, right-click the Excel key, choose New > Key, and name it Options.

3
Create the DefaultCPG DWORD value

Right-click the Options key, choose New > DWORD (32-bit) Value, and name it DefaultCPG.

4
Set the value to 65001

Double-click DefaultCPG, select Decimal, type 65001, and click OK. This value represents the UTF-8 code page.

5
Restart Excel and verify

Close Registry Editor, restart Microsoft 365 Excel, then import a UTF-8 text or CSV file to confirm it opens with UTF-8 by default.

Registry edit risk: Incorrect registry changes can cause Windows or Office problems. Contact your administrator if you are not comfortable modifying the registry.
Free Microsoft Office alternative

Open UTF-8 Text and CSV Files Without Registry Changes in WPS Office

WPS Office is a free, lightweight Microsoft Office alternative that opens UTF-8 encoded text and CSV files cleanly without editing the Windows registry. It offers a familiar Excel-style interface and full compatibility with .xlsx, .xls, and .csv files, making migration seamless.

Open UTF-8 text and CSV files without Windows registry modificationsFull compatibility with Microsoft Excel .xlsx, .xls, and .csv formatsFree and lightweight Office suite with a familiar Excel-style interfaceSeamless migration: open, edit, and save Excel workbooks without losing formattingNo system-level registry edits required for everyday encoding tasks
microsoft office alternative - wps office

Frequently Asked Questions

Does Microsoft 365 Excel include a normal option to set UTF-8 as the default?

No. Microsoft 365 Excel does not provide a standard Excel Options setting for a permanent UTF-8 default. You must use the Windows registry method or select UTF-8 during each import.

What registry value sets Excel's default encoding to UTF-8?

Create or edit the DefaultCPG DWORD value under HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Excel\Options and set Decimal to 65001, then restart Excel.

Will this registry change affect CSV files exported by Excel?

The DefaultCPG value affects the default code page Excel uses for text and CSV imports. For exports, use Excel's CSV UTF-8 save option under File > Save As when available.

Is editing the registry safe for changing Excel encoding?

It is generally safe if you back up the registry first and create the exact value as documented. Incorrect edits can cause Windows or Office problems, so ask an administrator if unsure.

Can WPS Office open UTF-8 CSV files without registry changes?

Yes. WPS Spreadsheets can import UTF-8 text and CSV files directly and works with Excel formats, so you can use it as a free alternative to avoid system registry edits.