If Notepad keeps closing by itself on Windows 11, it usually points to a corrupted app cache, a problematic update, or a conflict with another program. This guide walks you through the most effective fixes, from resetting the app to repairing system files, so you can get back to taking notes without interruptions.
What You’ll Need
- Administrator access to your Windows 11 PC (for some steps)
- An internet connection (for downloading updates if needed)
- About 10–15 minutes of your time
Step-by-Step
- Run Notepad as Administrator (temporary test)
Right-click the Start button and select “Run”. Typenotepad, then press Ctrl+Shift+Enter to run it as administrator. If it stays open, the issue is likely permission-related or caused by a startup add-on. - Check for Windows Updates
Go to Settings > Windows Update and click “Check for updates”. Install any pending updates, then restart your PC. Microsoft often patches app crashes through cumulative updates. - Repair Notepad via Settings
Open Settings > Apps > Installed apps. Scroll to “Notepad”, click the three-dot menu, and choose “Advanced options”. Scroll down and click “Repair”. If that doesn’t help, click “Reset” (this will delete your Notepad settings and any unsaved customizations, but not your files). - Clear Notepad’s Cache (via PowerShell)
Right-click Start and select “Terminal (Admin)”. Run this command:
Get-AppxPackage Microsoft.WindowsNotepad | Reset-AppxPackage
This resets the app’s data and cache without uninstalling it. - Reinstall Notepad
If resetting doesn’t work, uninstall and reinstall Notepad. In PowerShell (Admin), run:
Get-AppxPackage Microsoft.WindowsNotepad | Remove-AppxPackage
Then reinstall from the Microsoft Store by searching “Notepad” and clicking “Get”. - Run System File Checker (SFC)
Open Command Prompt as Administrator (search “cmd”, right-click, “Run as administrator”). Typesfc /scannowand press Enter. Wait for the scan to finish. If it finds corrupted files, it will repair them automatically. - Run DISM to Repair System Image
In the same Command Prompt window, run:
DISM /Online /Cleanup-Image /RestoreHealth
This fixes underlying Windows corruption that SFC might miss. Restart after it completes. - Check for Conflicting Third-Party Software
Some clipboard managers, screen recorders, or antivirus tools can interfere with Notepad. Temporarily disable any such software (especially those with overlay features) and test Notepad again. - Create a New User Profile (if the issue persists)
Go to Settings > Accounts > Other users and add a new user. Log into that profile and open Notepad. If it works, your current profile is corrupted. Migrate your files and switch to the new profile. - Perform a Clean Boot
PressWin + R, typemsconfig, and press Enter. Under the “Services” tab, check “Hide all Microsoft services”, then click “Disable all”. Go to the “Startup” tab and click “Open Task Manager”. Disable all startup items. Restart and test Notepad. If it works, re-enable items one by one to find the culprit.
Common Mistakes
- Skipping the Repair step: Many users jump straight to reinstalling, but the built-in Repair tool often fixes the issue without losing settings.
- Not restarting after updates or repairs: Some fixes only take effect after a full restart.
- Assuming it’s a Notepad problem: If Notepad closes only when you open a specific file, the file itself may be corrupted or too large.
- Ignoring third-party interference: Overlay apps (like gaming overlays) are a common but overlooked cause.
Tips
- Save frequently: While troubleshooting, use Ctrl+S often to avoid losing work if Notepad crashes again.
- Use Notepad’s built-in backup: In Notepad settings, enable “Save session” and “Backup files” to recover unsaved changes.
- Try a different text editor temporarily: If you’re in a hurry, use WordPad or a web-based editor while fixing Notepad.
- Keep Windows updated: Regular updates prevent many app stability issues.
Troubleshooting
If Notepad still closes after all steps:
- Check Event Viewer: Press
Win + Xand select “Event Viewer”. Go to “Windows Logs > Application” and look for errors mentioning “Notepad.exe”. The details may point to a specific faulting module. - Try a different user profile: As mentioned, a corrupted profile is a common cause. If the new profile works, you’ll need to migrate.
- Consider a system restore: If the issue started recently, use System Restore to roll back to a point before the problem began.
- Check for malware: Run a full Windows Defender scan. Malware can cause random app closures.
- If nothing works: Use the “Reset this PC” option (Settings > System > Recovery) with the “Keep my files” option. This reinstalls Windows while preserving your personal files.
Frequently Asked Questions
Will resetting Notepad delete my text files?
No. Resetting Notepad clears its settings, preferences, and cache, but it does not delete any .txt files or documents you’ve saved.
Why does Notepad close only when I open a large file?
Notepad can struggle with very large files (e.g., over 1 GB). If the file is enormous, try opening it in a more robust editor like Visual Studio Code or use the “Open with” option and choose WordPad.
Can a Windows update cause Notepad to crash?
Yes, occasionally a Windows update introduces a bug. Installing the latest updates (or rolling back a recent update) can resolve it.
Is there a way to recover unsaved text after a crash?
Notepad has a built-in recovery feature. If you enable “Save session” in Settings, it will restore open tabs after a crash. Also, check the “Backup files” option for periodic backups.
Why does Notepad close when I copy/paste large amounts of text?
This could be due to a clipboard manager conflict or a memory issue. Try disabling clipboard history (Settings > System > Clipboard) and any third-party clipboard tools.
Do I need to reinstall Windows to fix this?
Rarely. Most users resolve it with the repair or reset steps. Only consider a full reset if every other method fails and the issue persists across multiple user profiles.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Fix Unfortunately App Has Stopped: Step-by-Step
- Restart a Frozen Samsung Galaxy A12
- HomePod Stereo Pair with AirPlay 2 from iPhone
- Pixel & Pixel XL No Sound: Solved?
- How to Edit Playlists on iPhone
- Open Apps From Anywhere on macOS Sierra