Notepad is a Windows staple that hasn’t really changed in years. It’s fine as a basic text editor, but if you’d like to replace it with something a bit more powerful, then read on.
Text editors are great. They’re fast and easy to use for simple things like taking fast notes, keeping a dated log or journal file, or editing the odd configuration or even HTML file. Programmers and developers use them as one of their basic editing tools. Notepad has been the standard text editor included with Windows for many years. The problem is, as text editors go, Notepad is really basic. There are plenty of alternatives out there that add things like tabs, highlighted syntax, autocompletion, bookmarks, and customizable interfaces. And most of them are just as fast and easy to use as Notepad.
Sure, you could always just install one and use it like any other app, but we’re going to show you how actually replace Notepad so that your preferred text editor becomes the default tool when you—or any app—opens text files or calls on Notepad from anywhere in the Windows interface.
Step One: Choose a Replacement Text Editor
There are a ton of great Notepad replacements out there. Notepad2 and Metapad are both freeware favorites that work with the technique we’re describing in this article. If you use an editor professionally for development and don’t mind paying for extra features, you might also want to check out Sublime Text ($70) and UltraEdit ($99.95). The best editor for you will depend on what you need a text editor to do, so we encourage you to try them out and see what strikes your fancy before settling on a replacement. Once you do settle on a replacement, you’re ready to move on with the rest of these instructions.
We’re using Notepad2 as our example in this article. With its relatively minimalist interface, line numbers, and highlighted syntax, it’s long been a favorite around here.
Step Two: Make Sure the New Text Editor Will Work as a Replacement
The technique we’re using in this article is to actually replace the “notepad.exe” file in the Windows system folders with a copy of the EXE file for our chosen replacement editor. For this reason, the text editor replacement you choose will only work if its executable file can run outside its own folder. This usually isn’t the case with apps you have to install, so it’s best to look for an app that you can download as a self-contained ZIP package instead. Portable apps are ideal candidates.
We’ve already tested both Metapad and Notepad2, and both will work. If you’re using a different app, it’s easy enough to test whether it will work. Start by downloading the app you want to test and installing it if it’s an installable app. Next, you’ll need to find the app’s folder. If it’s a portable app, that’s just the folder you extracted. If it’s an installed app, you’ll find it in either your “Program Files” or “Program Files (x86)” folders.
When you’ve found the app’s folder, you should see just one file inside with an EXE extension.
Copy that executable file by selecting it and pressing Ctrl+C on your keyboard. Go to your desktop and paste the file there by hitting Ctrl+V. The idea here is to get the executable file somewhere all by itself, without the other stuff in its folder. Now, double-click that copied file and see if the text editor can run. If it does, you’re good to go. If it doesn’t, then it won’t work with the techniques in this article.
NOTE: You may have noticed that one of the long-standing favorite text editors—Notepad++—isn’t on our list. While it used to work with the techniques we’re discussing in this article, it’s gotten to be sophisticated enough an app that even the portable version can no longer run outside its own folder.
Step Three: Back Up Notepad
Since we’re going to be replacing the Notepad executable file, you’ll first want to back that file up. You likely won’t want to switch back to Notepad after getting used to a replacement, but you never know. Believe it or not, the “notepad.exe” file exists in multiple locations on your PC, and you’ll be replacing all of them. You can find the executables at the following locations:
- C:\Windows\SysWOW64 (only on 64-bit versions of Windows)
Use File Explorer to navigate to all of those locations. In each location, make a copy of the Notepad file by selecting the file, pressing Ctrl+C to copy it, and then pressing Ctrl+V to paste a copy. and choosing the “Copy” command. You will likely be asked to provide administrative permission in order to write the copy of the file to whatever system directory you’re in. Go ahead and click “Continue.”
When you’re done, you’ll see the original and the copy you made.
You can leave the name the way it is or rename it whatever you like. We usually go with something like “Notepad – Original.exe.” When you’ve made a copy of Notepad in all three locations, you’re ready to move on to the next step.
Step Four: Take Ownership of and Delete Notepad
After making copies of all your “notepad.exe” files, the next step is to delete them. Unfortunately, it’s not as simple as just hitting the Delete key. Even if you’re logged on with an administrator account, you can’t just delete system files like Notepad. Fortunately, it’s still possible to take control of a file and delete it without resorting to nasty hacks like disabling UAC.
Note that you’ll need to perform the following steps in all the locations that “notepad.exe” exists, so look back at that list in Step Two if you don’t already have those windows open in File Manager.
Right-click the “notepad.exe” file and choose “Properties.”
In the Properties window, on the “Security” tab, click the “Advanced” button.
Note that the current owner of the file is listed as “TrustedInstaller.” You’re going to take ownership of the file with your account. Click the “Change” link.
In the “Select User or Group” window, in the “Enter the object name to select” box, type your user account name, and then click the “Check Names” button. If you typed a valid name, the name should change to show the full user name path with the PC name before it. You can then click the “OK” button.
NOTE: If you’re using a Microsoft account (rather than a local account), your official user name is just the first 5 letters of the full email address you used to set up the account. You’ve probably also noticed that those five letters were also used to name your user folder.
Back in the “Advanced Security Settings” window, you’ll see that your user account is now listed as the owner of the “notepad.exe” file. Go ahead and click “OK.”
Back on the “Security” tab of the file’s Properties window, click the “Edit” button.
In the Permissions window, select the “Administrators” group and then click to place a check mark in the “Allow” column for the “Full control” permission. Note that this will automatically fill in all the other check marks in the “Allow” column as well. You can now click “OK.”
A security alert will pop up warning you that you’re about to change permission settings on system folders. Go ahead and click “Yes.”
You can click “OK” to close the file’s Properties window.
Now, you should have all the permission you need to delete the “notepad.exe” file in this location. Just select it, hit the Delete key, and click Yes when you’re asked to provide administrative permission. When you’re done, “notepad.exe” should be gone, leaving you with just the backup copy you made earlier.
Go ahead and perform all these steps in all the locations where you found the “notepad.exe” file. When you’re done, you’re ready to move on to the next step.
Step Five: Drop In Your Replacement Text Editor
And now comes the easy part. Now that you’ve backed up and then deleted the “notepad.exe” file in all its locations, you’re finally ready to drop in the replacement executable file.
First, find the executable file for the replacement text editor. If it was one you tested out, it may still be sitting on your desktop. Otherwise, you’ll need to find it in the app’s folder. Copy that executable file by selecting it and pressing Ctrl+C.
Next, go to each location where you deleted the original “notepad.exe” file and paste the replacement by pressing Ctrl+V. You will likely have to provide administrator permission to paste the file, so go ahead and click “Continue.”
Right after you paste the copy, rename it to “notepad.exe.” You’ll likely need to provide administrator permission again for this step.
Don’t worry if the thumbnail changes to show the old Notepad icon. Go ahead and repeat these steps for all the locations where “notepad.exe” was originally located.
Once you’re done, you can test things out easily by hitting Start, typing “notepad,” and pressing Enter. Your new text editor should come up. And now, any time that Notepad is called by Windows or another app, you’ll get your preferred replacement editor instead.
- › What Is An XML File (And How Do I Open One)?
- › How to Customize Junk Email and Safe Senders in Outlook
- › What Is a PHP File (And How Do I Open One)?
- › How to Add “Take Ownership” to the Right-Click Menu in Windows Explorer
- › How to Take Ownership of Files and Folders in Windows
- › The 50 Best Ways to Disable Built-in Windows Features You Don’t Want
- › This Huge Curved Ultrawide Monitor From LG Is $337 Today
- › How to Add Text to a Cell With a Formula in Excel