The safest way to clean the registry in Windows 11 is to clean it at the source. Uninstall programs you don’t use through Settings > Apps > Installed apps, then delete any leftover keys those programs left behind, backing up the registry first. Automatic “registry cleaner” apps are not needed. Microsoft does not support them, and they don’t make a modern PC noticeably faster. If you’re cleaning the registry because Windows is slow or behaving oddly, repairing system files with sfc /scannow and DISM is much more likely to help. Here’s the safe process, step by step.

Warning: The registry holds settings that Windows needs to start and run. Deleting the wrong key can stop programs, or Windows itself, from working. Don’t skip the backups in Step 1.
Do you need to clean the registry at all?
Usually not. The registry is a database, and unused entries take up a tiny amount of space and are rarely read. Windows doesn’t slow down because a few thousand old keys are left over. Registry cleaners aren’t supported under Microsoft’s support policy for registry cleaning utilities, and problems caused by them may not be fixable without reinstalling Windows.
There are good reasons to remove specific entries, though:
- A program you uninstalled still appears in menus or still starts at sign-in.
- A reinstall fails because old settings are still there.
- A support article from a software vendor tells you to delete a specific key.
What’s in the registry
The registry is split into five top-level sections, called hives. You’ll mostly work in two of them:
- HKEY_CURRENT_USER holds settings for the account you’re signed in to, such as app preferences and your desktop settings.
- HKEY_LOCAL_MACHINE holds settings for the whole PC, including installed software, drivers and Windows itself.
The other three, HKEY_CLASSES_ROOT, HKEY_USERS and HKEY_CURRENT_CONFIG, are mostly links into those two. Inside each hive, folders are called keys and the entries inside them are called values. When this guide says to delete a key, it means the whole folder and everything in it.
Step 1: Back up before you change anything
Create a restore point
- Click Start, type Create a restore point and open it.
- Select your system drive (usually C:). If protection is off, click Configure, choose Turn on system protection and click OK.
- Click Create, give the restore point a name such as Before registry cleanup, and click Create again.
Export the registry
- Press Windows + R to open the Run dialog, type
regeditand press Enter. Click Yes on the prompt. - Click Computer at the top of the left pane.
- Go to File > Export, choose All under Export range, give the file a name and save it somewhere safe.
The full export can be several hundred megabytes. You can also export just one key before you delete it. Right-click the key and choose Export.
Step 2: Uninstall programs you don’t use
A program’s own uninstaller removes most of its registry entries. That’s the cleanest way to clear them out.
- Open Settings > Apps > Installed apps.
- Click the … button next to a program you no longer need and choose Uninstall.
- Follow the prompts and restart if you’re asked to.
Step 3: Remove leftover keys by hand
Some programs leave their settings behind on purpose, in case you reinstall. To find and remove them:
- Open Registry Editor as shown in Step 1.
- Go to HKEY_CURRENT_USER\Software and look for a folder named after the program or its publisher.
- Check HKEY_LOCAL_MACHINE\SOFTWARE and HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node as well.
- Only when you’re sure the program is gone, right-click its key, choose Export to save a copy, and then choose Delete.
Only delete keys for software you recognize and have removed. Leave anything named Microsoft, Windows, or a hardware maker such as Intel, AMD, NVIDIA or Realtek, unless a vendor tells you to remove it.
Search for a program’s leftovers
Press Ctrl + F in Registry Editor, type the program’s name and click Find Next. Press F3 to jump to the next match. Look at each result before deleting it, because the same word can appear in unrelated keys.
Step 4: Clean up startup entries the safe way
Old programs often add themselves to the registry’s startup lists. You don’t need to edit those keys directly:
- Open Settings > Apps > Startup and turn off anything you don’t need, or
- Press Ctrl + Shift + Esc to open Task Manager, select Startup apps, then right-click an item and choose Disable.
Turning off unneeded startup apps does more for sign-in speed than any registry cleaner.
Step 5: Repair Windows instead of cleaning it
If Windows is crashing, showing errors or behaving strangely, repair it with the built-in tools:
- Right-click Start and choose Terminal (Admin).
- Run
DISM /Online /Cleanup-Image /RestoreHealthand wait for it to finish. - Run
sfc /scannow. - Restart the PC.
What each command reports, and what to do if it finds damage, is explained in checking for corrupted files in Windows 11 and fixing them.
Step 6: Free up real disk space
If your aim is more storage, the registry won’t help, because it’s a tiny part of your drive. Delete temporary files, empty the Recycle Bin, and turn on Storage Sense under Settings > System > Storage. Bigger savings usually come from deleting temp files in Windows 11 and finding large files in Windows 11.
Fixing “broken registry items”
Registry cleaner apps often report hundreds of “broken registry items”. In most cases these are harmless leftovers that Windows ignores, and deleting them won’t fix crashes or speed anything up. If Windows has real problems, such as errors, crashes or apps that won’t open, the cause is usually damaged system files, not stray registry entries. The fixes that actually help are:
- Run
DISM /Online /Cleanup-Image /RestoreHealthand thensfc /scannowin Terminal (Admin), as in Step 5 above, to check for and fix corrupted files. - Use System Restore to go back to a point before the problem started.
- Run Startup Repair from Settings > System > Recovery > Advanced startup if Windows won’t start properly.
- As a last resort, reinstall Windows while keeping your files.
If something goes wrong
- Restore a deleted key: Double-click the .reg file you exported and click Yes to merge it back.
- Undo all changes: Search for Create a restore point, click System Restore, and pick the restore point you made.
- Windows won’t start normally: Start in Safe Mode or open the recovery options and run System Restore from there. Here’s how to get into Safe Mode in Windows 11.
Frequently asked questions
Does Windows 11 have a built-in registry cleaner?
No. Disk Cleanup and Storage Sense clean files, not the registry.
Are registry cleaner apps safe?
Some are well-behaved, but the benefit is tiny and the risk is real. Some free “PC optimizer” tools also exaggerate problems to sell a paid version.
Will cleaning the registry speed up my PC?
Not noticeably. Disabling startup apps, freeing disk space, updating drivers and upgrading to an SSD make a much bigger difference.
Summary
- Create a restore point and export the registry.
- Uninstall programs you don’t use from Settings.
- Export, then delete, leftover keys for software you’ve removed.
- Use DISM and
sfc /scannowto repair Windows instead of a registry cleaner.

Matt Jacobs writes and maintains the guides on Support Your Tech, which he started in 2017. He spent most of his career keeping small-business PCs running and still takes the occasional consulting job, so the steps here come from fixing the same problems on other people’s computers. Every guide is checked on his own Windows 11, Windows 10, Mac, iPhone and iPad before it goes up.