Change Default Encoding In Notepad For Windows 10

This registry workshop will help you to change default encoding in Notepad for Windows 10.

Kapil Arya
11x Microsoft MVP · Admin
Add as a preferred
source on Google

In computing, usually the character encoding is used for representing a stock or repository of characters followed by type of encoding system which assigns a number to each character for digital representation. When you are writing something digitally without a plain English, others won’t be able to read the content if no character encoding is specified. In the absence of character encoding, the readability of your written content may be lost. That’s why character encoding is important, especially in text editors such as Notepad in Windows 10. In this article, we will learn how you can change default encoding in Notepad for Windows 10.

In your system, characters are stored in using a special code. In simple language, character encoding unlocks that special code. You can read more about character encoding on different articles available on web. There is a lot of literature present about this topic. Now let us focus back to Notepad in Windows 10 which usually supports following encodings:

  • ANSI
  • UTF-16 LE
  • UTF-16 BE
  • UTF-8 BOM
  • UTF-8

Change Default Encoding In Notepad For Windows 10

Here, UTF-8 is the default encoding for Notepad. If your work requires the default encoding to be something else than UTF-8, you can perform below mentioned registry manipulation and change default encoding.

Change Default Encoding In Notepad For Windows 10

It is recommended to create a System Restore point first, before modifying the registry key.

1. Press W8K + R and put regedit in Run dialog box to open Registry Editor (if you’re not familiar with Registry Editor, then click here). Click OK.

2. In left pane of Registry Editor window, navigate to following registry key:

HKEY_CURRENT_USER\Software\Microsoft\Notepad

Change Default Encoding In Notepad For Windows 10

3. In the right pane of Notepad registry key, right click and select New > DWORD Value. Name the newly created registry DWORD (REG_DWORD) as iDefaultEncoding. Set its Value data to either of the following values, depending upon type of default encoding you want:

  • 1 for ANSI
  • 2 for UTF-16 LE
  • 3 for UTF-16 BE
  • 4 for UTF-8 BOM
  • 5 for UTF-8

We used Value data as 1 to set default encoding to ANSI, in this example.

4. Close Registry Editor and sign out then sign-in back to make changes effective.

After login back, you will find that default encoding is changed for the Notepad app:

Change Default Encoding In Notepad For Windows 10

Check this video to illustrate above mentioned steps:

That’s it!

Share this article
https://www.kapilarya.com/change-default-encoding-in-notepad-for-windows-10

Shareable URL

Article by

Kapil Arya
11x Microsoft MVP · Admin

Kapil holds Microsoft MVP title in Windows IT Pro expertise, 11-times in a row (2014-2025). He is 8-times Windows Insider MVP as well, and author of 'Windows Group Policy Troubleshooting' book. In 2015, Microsoft India accomplished him as 'Windows 10 Champion'. Being passionate Windows blogger, he loves to help others on fixing their system issues. Kapil has worked with official Microsoft Community Engagement Team (CET) on several community projects. You can subscribe him for news/updates and fixes for Windows.