How to Clean the Registry in Windows 11 Safely

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.

Safe steps to clean the registry in Windows 11: back up, uninstall unused apps, remove leftover keys, and repair system files
Back up first, then clean at the source. An illustrated summary of the process.

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

  1. Click Start, type Create a restore point and open it.
  2. Select your system drive (usually C:). If protection is off, click Configure, choose Turn on system protection and click OK.
  3. Click Create, give the restore point a name such as Before registry cleanup, and click Create again.

Export the registry

  1. Press Windows + R to open the Run dialog, type regedit and press Enter. Click Yes on the prompt.
  2. Click Computer at the top of the left pane.
  3. 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.

  1. Open Settings > Apps > Installed apps.
  2. Click the … button next to a program you no longer need and choose Uninstall.
  3. 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:

  1. Open Registry Editor as shown in Step 1.
  2. Go to HKEY_CURRENT_USER\Software and look for a folder named after the program or its publisher.
  3. Check HKEY_LOCAL_MACHINE\SOFTWARE and HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node as well.
  4. 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:

  1. Right-click Start and choose Terminal (Admin).
  2. Run DISM /Online /Cleanup-Image /RestoreHealth and wait for it to finish.
  3. Run sfc /scannow.
  4. 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:

  1. Run DISM /Online /Cleanup-Image /RestoreHealth and then sfc /scannow in Terminal (Admin), as in Step 5 above, to check for and fix corrupted files.
  2. Use System Restore to go back to a point before the problem started.
  3. Run Startup Repair from Settings > System > Recovery > Advanced startup if Windows won’t start properly.
  4. 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

  1. Create a restore point and export the registry.
  2. Uninstall programs you don’t use from Settings.
  3. Export, then delete, leftover keys for software you’ve removed.
  4. Use DISM and sfc /scannow to repair Windows instead of a registry cleaner.