How to Remove Malware from Your PC: Complete Guide 2026
Is your PC suddenly slow, showing strange pop-ups, or running programs you never installed? You might have malware. Don't panic: in most cases you can remove it without formatting. Here's the complete procedure to clean your computer and prevent reinfection.
Quick fix (TL;DR)
- Disconnect the PC from the internet to stop malware communication
- Boot into Safe Mode with networking
- Run Windows Defender (offline scan)
- Install and run Malwarebytes (free version)
- Remove suspicious programs from Settings
- Reset your browser to factory defaults
How malware gets on your PC
Most common infection vectors:
- Downloading pirated software or from untrusted sites
- Email attachments disguised as invoices or important documents
- Clicking deceptive advertisements (malvertising)
- Infected USB drives
- Unpatched operating system vulnerabilities
- Malicious browser extensions
Step-by-step guide
Step 1 โ Disconnect from the internet
As soon as you suspect an infection:
- Unplug the Ethernet cable or disable Wi-Fi
- This prevents malware from:
- Downloading additional components
- Sending your data to external servers
- Spreading to other devices on the network
Step 2 โ Boot into Safe Mode
Safe Mode loads only essential services, preventing many types of malware from starting:
- Press
Windows + Ito open Settings - Go to System > Recovery
- Under "Advanced startup" click Restart now
- Select Troubleshoot > Advanced options > Startup Settings
- Click Restart
- Press
5for "Safe Mode with Networking"
Quick method: hold Shift while clicking Restart in the Start menu.
Step 3 โ Run Windows Defender Offline
From Safe Mode:
- Open Windows Security (search in Start)
- Go to Virus & threat protection
- Click Scan options
- Select Microsoft Defender Offline scan
- Click Scan now
The PC will restart and run a scan before Windows loads, catching malware that hides in the system.
Step 4 โ Scan with Malwarebytes
Malwarebytes catches adware, PUPs, and malware that traditional antivirus often misses:
- Download Malwarebytes Free from malwarebytes.com
- Install and launch the program
- Click Scan (full analysis)
- Wait for completion (15-30 minutes)
- Select all detected threats
- Click Quarantine to isolate them
- Restart the PC when prompted
Step 5 โ Remove suspicious programs
- Open Settings > Apps > Installed apps
- Sort by Install date
- Look for recently installed programs you don't recognize
- Select and click Uninstall
- Also check browser extensions:
- Chrome:
chrome://extensions - Edge:
edge://extensions - Remove anything you didn't install voluntarily
- Chrome:
Step 6 โ Reset your browser
If your browser is compromised (homepage changed, different search engine):
Chrome:
- Go to
chrome://settings/reset - Click Restore settings to their original defaults
- Confirm
Edge:
- Go to
edge://settings/resetProfileSettings - Click Reset settings
Step 7 โ Prevent reinfection
After cleaning:
- Update Windows fully (
Windows + I> Windows Update) - Enable automatic updates
- Keep Windows Defender always active
- Don't disable the firewall
- Only install software from official sources
- Don't open suspicious email attachments
Common mistakes to avoid
- โ Downloading "free antivirus" from pop-ups warning about infections โ they often ARE the malware
- โ Ignoring symptoms thinking the PC is just "old"
- โ Paying ransomware demands โ doesn't guarantee file recovery
- โ Reconnecting to the internet before completing the cleanup
- โ Not changing passwords after removal โ malware may have stolen them
When formatting is necessary
If after all steps the PC is still infected:
- Ransomware that encrypted your files
- Rootkits that reinstall after every removal
- Severely damaged system with multiple errors
In these cases, back up important files (verifying they're not infected) and reinstall Windows from scratch.
For comprehensive preventive protection, read our guide on how to protect your smartphone from viruses which includes tips useful for PCs too.
Frequently asked questions
How do I know if my PC has malware?
Common signs: sudden slowdowns, pop-up ads, unknown programs installed, browser opening by itself, fans running at full speed for no reason.
Is Windows Defender enough to remove malware?
For most cases, yes. For stubborn infections, pair it with Malwarebytes (free scan) which catches adware and PUPs that Defender may miss.
Do I need to format my PC to remove malware?
Only in extreme cases (ransomware, rootkits). Most malware can be removed with Safe Mode scans without losing data.
Can malware infect Mac or Linux?
Yes, though less common. macOS and Linux aren't immune: adware, trojans, and ransomware exist for all platforms.
Related articles
How to Protect Your Smartphone from Viruses and Malware
How to effectively protect your smartphone from viruses, malware and scams in 2026. Practical guide for Android and iPhone.
How to Take a Screenshot on PC: All Methods (Windows 10/11)
Learn how to take screenshots on Windows PC using keyboard shortcuts, Snipping Tool, and free tools. All methods for Windows 10 and 11 explained.
Free VPN: Which Ones Really Work in 2026
Reliable free VPNs in 2026: which ones really work, which to avoid, and what limits to expect compared to paid versions.
How to Split a PDF File: Free Methods Online and Offline
How to split a PDF into multiple parts: free online tools, desktop software, and built-in methods for Windows and Mac. Quick and secure guide.