How to replace Notepad with Notepad++ in Windows by default

Last update: 16/10/2025
Author Isaac
  • Several ways to use Notepad++ as default: associations, IFEO, App Paths and external tool.
  • IFEO redirects any call to notepad.exe to Notepad++ with maximum compatibility.
  • Notepad++ Associations (as admin) resolve cases where Windows does not save the choice.
  • All changes are reversible and safe if the paths are respected and the Registry is backed up.

Replace Notepad with Notepad++ on Windows

If you use Windows daily, you've probably opened a .txt file more than once and been greeted by Notepad . It's a basic and useful tool, but for many, it falls short when dealing with large files, searching across multiple documents, or simply editing more comfortably. That's why switching to Notepad++ as your default makes perfect sense: you gain features without sacrificing speed , and the transition is easy if you know how.

Several users have mentioned a very specific issue: right-clicking and pressing the "E" key on "Edit with Notepad++" doesn't always open what they expect. This can be solved by going a step further: redirecting all calls to notepad.exe so they launch with Notepad++. In this guide, I'll explain all the reliable options, both with and without the Registry, and I'll also tell you how to revert the changes without any problems if you ever want to go back to Notepad.

Why switch from Notepad to Notepad++

The Windows Notes app is fine for basic tasks, but it falls short when you need more. Notepad++ comes in right where it belongs, with advanced editing tools and a user-friendly interface. Among its advantages are powerful search capabilities, the ability to detect and remove duplicate lines , tabbed browsing, and effortless performance with large files .

Beyond simply opening .txt files, Notepad++ lets you take advantage of everyday tasks: open multiple documents at once, edit in parallel, use custom shortcuts, or automate with macros. This is incredibly useful for anyone who works with logs , configuration files, or code , even if you only do it occasionally.

  • Syntax highlighting and folding for dozens of languages ​​(and user-defined ones).
  • Search and replace with regular expressions (PCRE) and scope by folder.
  • Tabbed interface, dual view and list of documents vertical.
  • Word and function auto-completion, configurable shortcuts and macros.
  • WYSIWYG printing, zoom and document mapping to navigate quickly.

Furthermore, the installer is small and available in both 32-bit and 64-bit versions. The best part is that you can make it your default editor without breaking anything: if you ever want to open the classic Notepad, you can still do so manually. In the sections below, you'll find step-by-step and safe methods , from the simplest to the more "technical."

Method 1: Associate .txt with Notepad++ from Windows

The most direct way is to associate .txt files with Notepad++. It's a clean and reversible change that doesn't affect the system beyond associating the file extensions. This method is ideal if you want .txt files to always open with Notepad++ , but without disabling Notepad.

Do this: Create or locate a .txt file, right-click it, go to Properties, and click "Change" under "Opens with." If you see Notepad++, select it. If it doesn't appear, click "More apps" and then "Browse my computer for other apps" to navigate to the executable's location. Its typical location is C:\Program Files\Notepad++\notepad++.exe on 64-bit systems or C:\Program Files (x86)\Notepad++\notepad++.exe on 32-bit systems.

Once you accept, Windows will remember that choice for all .txt files. If this association isn't saved on your computer, or if nothing happens when you click on Notepad++, don't worry. There are robust alternatives that will force the change, including Notepad++'s own internal associations or system-level redirection.

Notepad++ default editor on Windows

Method 2: File associations from Notepad++ (with administrator permissions)

Notepad++ includes its own file association management. This is especially useful when Windows refuses to honor your settings. To apply it, open Notepad++ with administrator privileges (right-click the icon and choose "Run as administrator"), because without elevation it won't be able to register the extensions.

Now go to Settings > Preferences > File Associations. In the panel, you'll see supported extensions on the left and registered extensions on the right. Move "txt" (and any others you're interested in, such as .log, .ini, .cfg) to the "Registered Extensions" column. This will allow Notepad++ to persistently and consistently handle those extensions, ensuring they are respected by the system.

  How to Use Ultimate Windows Tweaker 4

If you've already tried using Windows Settings or Properties and the selection didn't work, this method within the program itself often resolves the issue. Keep in mind that Windows 10 and 11 can be stubborn for some systems, so running Notepad++ as administrator makes a difference.

Method 3: Redirect notepad.exe to Notepad++ with Registry (IFEO)

This is the most comprehensive method: whenever any application or the user tries to launch notepad.exe, Notepad++ will open instead. We achieve this using the "Image File Execution Options" (IFEO) registry key, which allows you to define a debugger for an executable file . In this case, we "redirect" notepad.exe to notepad++.exe.

Before anything else, two warnings. First, back up the Registry if you're not used to working with it; it's a quick step that will save you from problems if you make a mistake. Second, make sure you have the correct path to Notepad++, because the string you enter must point exactly to the executable file in your installation.

Option A: .reg file. Create a file with the .reg extension containing this information (adjust the path if your installation is 32-bit or if you are using a different folder) and run it with administrator privileges:

Windows Registry Editor Version 5.00 "Debugger"="C:\\Program Files\\Notepad++\\notepad++.exe -notepadStyleCmdline -z"

The -notepadStyleCmdline -z parameters make Notepad++ mimic Notepad's command -line style and suppress the splash screen, for a more seamless experience.

Option B: Command line ( Command Prompt as administrator). If you prefer to use a command, open Command Prompt with administrator privileges and run one of these commands, depending on your situation:

REM Installing Notepad++ 64-bit (Program Files folder) reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v Debugger /t REG_SZ /d "\"C:\\Program Files\\Notepad++\\notepad++.exe\" -notepadStyleCmdline -z" /f REM Installing Notepad++ 32-bit (Program Files (x86) folder) reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v Debugger /t REG_SZ /d "\"C:\\Program Files (x86)\\Notepad++\\notepad++.exe\" -notepadStyleCmdline -z" /f

In both cases, from that point on, any attempt to launch notepad.exe will be intercepted, and Windows will launch Notepad++. This includes system invocations, third-party invocations, and your own. If you were using the "Edit with Notepad++" context menu and looking for a keyboard shortcut like "E," this redirection makes notepad.exe itself become Notepad++ , which in practice further streamlines the workflow.

Method 4: Run Notepad++ by typing notepad in “Run” (App Paths)

There's a less intrusive alternative that doesn't replace all calls to notepad.exe, but only affects how Windows resolves the "notepad" command when using Win+R, the search bar, or similar methods. To do this, you can create an entry in App Paths pointing to Notepad++.

Open the Registry Editor (Win+R > regedit ) and navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\App Paths. Create a key named notepad.exe and in its value "(Default)" paste the path to the Notepad++ executable (for example, C:\\Program Files (x86)\\Notepad++\\notepad++.exe if your installation is 32-bit). This way, when you type "notepad" in Run, Notepad++ will open instead of Notepad.

This method is useful if you don't want to interfere with IFEO at the system level; however, it won't redirect all cases (for example, internal calls from some applications will still invoke the system's notepad.exe).

Method 5: Use Notepad Replacer (third-party tool)

If you prefer a more assisted solution, Notepad Replacer automates the redirection of Notepad to an alternative editor. During installation, you choose the target application (for example, Notepad++), and the tool configures the Notepad "debugger" for you, redirecting it to a small proxy that launches Notepad++ and passes it the arguments correctly.

The advantage is simplicity: you don't manually edit the Registry, and when you uninstall or disable the tool, you can easily revert to the original behavior. It's a good option if you want to avoid Registry editing errors and have a single point of reference for changes.

  Automatic scrolling in Instagram Reels: a complete guide

Method 6: Intermediate script with VBScript (advanced option)

Another possibility is to create a small script that acts as a wrapper: it receives the call that would go to notepad.exe and forwards it to Notepad++. This is useful if you need to manipulate parameters or ensure that the target file is passed correctly in different scenarios.

Create a file named npp.vbs with this content and save it to C:\\Windows:

Set WshShell = WScript.CreateObject("WScript.Shell") If WScript.Arguments.Count < 2 Then WshShell.Run "notepad++.exe" Else sCmd = "notepad++.exe " & "\"" & WScript.Arguments(1) & "\"" WshShell.Run sCmd End If

Next, redirect notepad.exe to the script using IFEO. In the Registry, go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options, create the notepad.exe key if it doesn't exist, and add the string value "Debugger" with this data: c:\\windows\\system32\\wscript.exe «c:\\windows\\npp.vbs».

As an additional adjustment, check the key HKEY_CLASSES_ROOT\\txtfile\\shell\\open\\command. The value “(Default)” should contain quotation marks around %1, like this: %SystemRoot%\\system32\\NOTEPAD.EXE “%1” . This detail prevents problems with paths containing spaces and ensures that the files are passed correctly to the editor.

How to undo the change and return to Notepad

If you ever want to revert, you can do so in seconds. If you used the .reg file or the IFEO command, simply delete the "Debugger" value (or the entire notepad.exe key) within Image File Execution Options . From the administrator command line:

REM Remove only the value Debugger reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v Debugger /f REM Or remove the entire key notepad.exe reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /f

If you used Notepad++ Associations, go back to Preferences and move the extensions from the "Registered" column to the "Allowed" column. For App Paths, delete the notepad.exe key you created. This should restore the system to its original behavior.

Common problems and quick solutions

Notepad++ doesn't appear when choosing the default app: sometimes the Windows selector doesn't list all apps. Use "More apps" and then "Look for another app on your PC" to specify the executable. If Windows still doesn't respect your choice, try using File Associations from Notepad++ running as administrator.

I click on Notepad++ when changing the default, and nothing happens: it's usually due to insufficient permissions or a policy that "anchors" the association. Run Notepad++ as administrator and repeat the process in Preferences > File Associations. If the problem persists, IFEO redirection guarantees the replacement without relying on the application selector.

Is it safe to modify the Registry?: Yes, as long as you know what you're doing and make a backup beforehand. We work with known locations and a single key/value pair. Even so, it's recommended to create a restore point or export the key before editing it.

32/64-bit compatibility: Respect the actual path of your installation. If Notepad++ is located in “C:\Program Files (x86)”, use that path. If it's 64-bit, the usual path is “C:\Program Files”. Checking this before creating the “Debugger” value prevents invalid paths.

Does it also work on Windows 11 ?: Yes, the association methods, IFEO, and App Paths are maintained. The application switcher interface changes slightly, but the mechanism for redirecting notepad.exe remains the same.

Practical tips and good practices

Install Notepad++ from its official website and choose the appropriate architecture (x64 if your Windows is 64-bit). This ensures you receive updates and stability improvements. Keeping the program up to date prevents errors with add-ons and adds new features with each version.

Consider registering not only .txt files: it's often useful to also register .log, .ini, .cfg, or .md files. From Preferences > File Associations, you can move multiple extensions at once, centralizing your entire editing workflow in Notepad++.

Check the quotation marks in the paths: When working with commands or .reg files, respect the escaped quotation marks and double backslashes (\\) required by Registry syntax; also check the encoding (UTF-8 vs ANSI) when opening text files. This is the most common mistake when copying and pasting. A misspelled path will prevent the system from finding the executable.

Don't uninstall Notepad: even if you replace it as the default or redirect it, it's worth keeping. Some older tools rely on it. Besides, you can always open it manually when you need something very lightweight and without extras.

  What Is A CRYPT8 File? What Is It For And How To Open One

“Edit with Notepad++” context menu shortcut: If you’re used to invoking it with the accelerator letter “E” after right-clicking, but want something even more direct, IFEO redirection turns any call to notepad.exe into Notepad++, making it so you don’t have to rely on the context menu for quick editing.

Installing and configuring Notepad++ for the first time

The installer is guided and very simple. Just choose your language, accept the license, and define the destination folder. You can check the box to create a desktop shortcut. On the components screen, leave the default settings if you don't have specific needs: it already includes everything essential for easy editing.

When you open it for the first time, you'll see the new version features and menus. Take a minute to explore Settings > Preferences to customize your experience: light/dark theme, saving session on exit, multi-line tabs, document list, or whatever suits you best.

One suggestion: enable session saving and document restoration. That way, if you close in a hurry, everything will be exactly as you left it when you return. It's also helpful to configure custom keyboard shortcuts if you frequently repeat actions (multiplying lines, folding blocks, etc.).

When to choose each method

If you simply want to open .txt files with Notepad++, use the association from Notepad++ Properties or Preferences; it's the cleanest way. If you need absolutely everything that invokes notepad.exe to open with Notepad++, use IFEO (a .reg file or reg add from cmd with elevated privileges).

If you don't want to modify IFEO and just want to launch Notepad++ when you type "notepad" in Win+R, App Paths is sufficient. And if you're more comfortable with an external tool to handle the replacement, try Notepad Replacer to do the job for you.

Those who have encountered the "nothing happens" issue when selecting Notepad++ as the default application usually resolve it by running it as administrator and using its own application association manager. This step is key when Windows is particularly stubborn about changing the default application.

Practical summary of routes and keys involved

Typical installation paths: 64-bit to C:\\Program Files\\Notepad++\\notepad++.exe , 32-bit to C:\\Program Files (x86)\\Notepad++\\notepad++.exe . Verify which one you have before creating values ​​in the Registry or running reg.exe commands to avoid pointing errors.

IFEO (total redirection of notepad.exe): HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe with the string value “Debugger” pointing to the path of Notepad++ plus “-notepadStyleCmdline -z”. This is the foolproof method if you're looking for a complete replacement.

App Paths (Win+R / search): HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\App Paths\notepad.exe with "(Default)" to the path of Notepad++. Useful if you don't want to modify IFEO but want a direct invocation.

Association of .txt files: from File Properties (click the "Change" button) or from Notepad++ > Preferences > File Associations (running the program as administrator). This method is the most beginner- friendly.

txtfile key for correct opening: HKEY_CLASSES_ROOT\txtfile\shell\open\command with “%SystemRoot%\\system32\\NOTEPAD.EXE «%1″” to ensure that paths with spaces do not cause problems when passing the file to the application.

Ultimately, you have several paths to reach the same destination: making Notepad++ your default editor. Choose the one that best suits your profile and needs. If you value security and reversibility, start with associations; if you're looking for absolute control , go with IFEO and forget about it.

Making Notepad++ your default editor saves you time in the long run and unlocks tools that Notepad doesn't offer: from code folding and folder searches to macros and side-by-side views. If you ever change your mind, switching back is easy, and in the meantime, you'll enjoy a lightweight, powerful, and free editor every day.

Search Bing for selected text in Windows Notepad
Related articles:
Search with Bing for selected text in Windows Notepad: Complete guide