Â
 How to Remove a Virus from Your Computer (Step-by-Step)
Whether you’re using Windows or Mac, a virus can cause slow performance, pop-ups, strange behavior, or data loss. Don’t worry — you can fix it. Here’s how to do it step by step:
 1: Disconnect from the Internet
If your computer is infected, disconnect it from Wi-Fi or unplug the internet cable.
Why?
This prevents the virus from:
-
Spreading to other devices
-
Downloading more harmful files
-
Sending your data out
 2: Restart Your Computer in Safe Mode
Safe Mode starts your computer with only the basic programs it needs to run. This helps stop the virus from running.
For Windows:
-
Click Start → Power → Hold Shift and click Restart.
-
Choose Advanced Options → Startup Settings → Click Restart.
-
Press F4 to start in Safe Mode or F5 for Safe Mode with Networking.
For Mac:
-
Restart your Mac.
-
Hold the Shift key as it starts up.
-
Release the key when you see the login screen.
 3: Delete Temporary Files
Temporary files can hide viruses.
For Windows:
-
Press Windows + R keys.
-
Type
tempand press Enter. -
Select all files and delete them.
-
Repeat with
%temp%and also delete all files.
 4: Use an Antivirus or Anti-Malware Scanner
Now, scan your computer for viruses using a trusted program.
Good free tools:
-
[Windows Defender](Built-in on Windows 10 and 11)
What to do:
-
Install one of these tools.
-
Run a full scan (not a quick scan).
-
Let it finish and remove anything it finds.
 5: Restart Your Computer Normally
After the antivirus has removed the threats, restart your computer normally (not in Safe Mode).
6: Check Startup Programs
Some viruses set themselves to start every time your computer turns on.
For Windows:
-
Press Ctrl + Shift + Esc to open Task Manager.
-
Go to the Startup tab.
-
If you see unknown or suspicious programs, right-click and choose Disable.
 7: Reset Your Web Browser
Viruses often change browser settings or install unwanted toolbars.
What to do:
-
Open your browser (like Chrome, Firefox, Edge).
-
Go to Settings.
-
Find the Reset Settings option.
-
Also, remove any unknown extensions or add-ons.
 8: Update Everything
Keeping your system and software up to date helps prevent future infections.
What to update:
-
Your operating system (Windows or macOS)
-
Your antivirus software
-
Web browsers (Chrome, Firefox, Safari, etc.)
-
Common software like Java, Adobe Reader, etc.
 If the Virus Is Still There…
If your computer is still acting strange after all these steps:
Option 1: Use a Bootable Rescue Disk
-
Some antivirus companies (like Bitdefender or Kaspersky) offer rescue tools that start outside of Windows.
-
You can copy this tool to a USB drive and boot from it to clean your computer.
 2: Use System Restore (Windows only)
-
Go to Control Panel → Recovery → Open System Restore
-
Choose a restore point from before the infection started.
3: Reinstall Your Operating System
If nothing else works, you may need to back up your files and reinstall Windows or macOS.
âś… After You Remove the Virus
Once your computer is clean:
-
Install a good antivirus and keep it updated.
-
Avoid downloading software from unknown websites.
-
Don’t click on suspicious links or email attachments.
-
Backup your important files regularly (on cloud or external drive).
- How to Safety remove Virus From Your Computer