How to Remove Keylogger From Windows: Step by Step

By Information Security Asia · Updated November 21, 2026 · 4 min read

Short answer: a keylogger records what you type, so treat a suspected infection as a possible compromise of every password you typed. Disconnect from the network, scan with Microsoft Defender (including an offline scan), review startup items, installed programs and browser extensions, then change your passwords from a different, clean device and turn on two-factor authentication. If you are not confident the machine is clean, back up your files and reinstall Windows.

What a keylogger is

A keylogger is software (or, rarely, hardware) that captures keystrokes and sometimes screenshots, clipboard contents or form data, then sends them to someone else. It can arrive as part of a trojan, a pirated program, a malicious email attachment or an infected browser extension. Some commercial “monitoring” programs act the same way and are used for stalking, so unexplained monitoring software on a personal computer should be taken seriously.

How to Remove Keylogger From Windows: Step by Step

Signs you may have one

  • Typing lags or characters appear late or twice.
  • Unexpected programs start with Windows, or your antivirus gets disabled.
  • Accounts show logins you did not make, soon after you typed a password.
  • High network activity when you are not using the computer.
  • Security tools refuse to update or open.

None of these alone proves infection. Slow typing can be an overloaded computer. Treat the pattern, not a single sign.

Step 1: Limit the damage

  1. Disconnect from Wi-Fi or unplug the network cable so captured data cannot leave.
  2. Do not log in to banking or email on this machine until it is cleaned.
  3. If you must act now, use a different trusted device (such as your phone on mobile data) to change critical passwords, starting with email and banking.

Step 2: Scan

Open Windows Security, then Virus and threat protection. Run a Full scan. Then choose Microsoft Defender Offline scan, which restarts the PC and scans before Windows loads, helping to find malware that hides while Windows runs. A second opinion from a reputable on-demand scanner can help, but avoid downloading “free keylogger removers” from search ads, as many are malware themselves.

How to Remove Keylogger From Windows: Step by Step

Step 3: Review what runs

Where to look How What to look for
Installed apps Settings, Apps, Installed apps; sort by install date Programs you did not install
Startup apps Task Manager, Startup apps Unknown items enabled at login
Task Scheduler Open Task Scheduler Library Odd tasks that run scripts or unknown executables
Browser extensions Extensions page in each browser Extensions with broad permissions you do not use
Accessibility/remote tools Installed apps Remote-access tools you did not set up

Step 4: Decide whether to reinstall

If a scan finds and removes a known keylogger and the signs stop, you may reasonably continue. If the threat is persistent, you cannot explain what you found, or you handle sensitive data, a clean reinstall is the safest option. Back up documents only (not programs), scan the backup, reinstall Windows from official media, and install software fresh.

Step 5: Change credentials the right way

  • Use a clean device. Changing a password on the infected PC gives the new password to the attacker.
  • Start with email, then banking, then social, work and cloud accounts.
  • Use unique passwords from a password manager and turn on two-factor authentication. An authenticator app or security key helps because a typed password alone is no longer enough.
  • Watch accounts and credit for unusual activity; consider a credit freeze if financial details were typed.

Hardware keyloggers and stalkerware

Check cables between the keyboard and PC for unfamiliar small devices, especially on shared or public computers. On a personal machine, monitoring software installed by someone with physical access is a safety issue as well as a security one. If you suspect a partner or someone close to you, plan your response carefully because removing it may alert them; domestic-violence support organisations can advise.

How to avoid keyloggers

  1. Keep Windows, browsers and apps updated.
  2. Download software only from official sources.
  3. Be careful with email attachments and macros.
  4. Use a password manager that fills passwords, which reduces typing them.
  5. Lock your computer and use a standard (non-admin) account for daily use.

Frequently asked questions

Can an on-screen keyboard stop a keylogger?

Not reliably. Some malware also captures screenshots and clipboard data.

Does Defender detect keyloggers?

It detects many known ones, but no scanner is perfect, so combine scanning with the reviews above.

Related: remove a keylogger from Mac and remove adware from Windows.

Sources

Keep reading