What to do if your iPad has a virus

If your iPad is running slowly, showing pop-up ads you didn't click, or draining battery faster than usual, a virus or malware may be the cause. The fastest fix is to restart your iPad, then check your installed apps and remove anything you don't recognize or trust. If that doesn't work, you can sign out of your Apple ID, erase the device, and restore it from a backup made before the problem started. Most iPad viruses come through malicious apps or phishing links, not through normal web browsing, so removing the source usually solves it.

iPad viruses are less common than on other devices because Apple controls which apps can be installed and reviews them before they appear in the App Store. But they do happen — usually when someone installs an app that looked legitimate but contained hidden code, or clicks a link in an email or text message that installed something without permission.

Key Takeaways

  • Restart your iPad first, then check the App Store for recently installed apps and delete anything unfamiliar or suspicious.
  • If restarting and removing apps doesn't help, sign out of your Apple ID, erase the iPad completely, and restore from a backup made before the problem started.
  • Most iPad malware comes through apps or phishing links, not websites, so removing the infected app usually stops the problem.
  • You can prevent future infections by only installing apps from the official App Store, not clicking links in unexpected emails or texts, and keeping your iPad updated to the latest version of iPadOS.
  • If you can't remember when the problem started, restore from your oldest available backup or set up the iPad as new.

Restart your iPad and check what's installed

The first step is a full restart. Press and hold the top button and either volume button until the power-off slider appears, then drag it to turn off the iPad. Wait 30 seconds, then press and hold the top button again until the Apple logo appears. This clears temporary files and stops any malware that's running in memory.

After the restart, open the App Store and tap your profile picture in the top right corner. Tap Purchased or My Purchases, then look at the list of apps you've installed. Scroll through and look for anything you don't recognize, anything with a name that's slightly off from a real app (like "Instgram" instead of "Instagram"), or apps you don't remember downloading. Tap the cloud icon next to any suspicious app to remove it from your iPad.

Check your home screen and app library too. Swipe to the rightmost home screen or open the App Library (swipe up from the bottom and hold), and look for unfamiliar apps there. If you find something you didn't install, press and hold it, tap Remove App, then tap Remove from Home Screen or Delete App.

Clear your browser history and cached data

Malware sometimes hides in your browser's stored data. Open Safari (or whatever browser you use), then go to Settings > Safari. Scroll down and tap Clear History and Website Data. Choose All time from the dropdown, then tap Clear History and Data. This removes your browsing history, cookies, and cached files that malware might be using.

If you use Chrome, Firefox, or another browser, the process is similar but the menu location differs. In Chrome, tap the three-dot menu, go to Settings, tap Privacy, then Clear Browsing Data. Select All time and make sure Cookies and Site Data is checked before you tap Clear Browsing Data.

Erase and restore your iPad if the problem continues

If restarting and removing apps didn't stop the problem, the malware may be deeper in the system. The most reliable fix is to erase the iPad completely and restore it from a backup made before the infection started. Go to Settings > General > Transfer or Reset, then tap Erase All Content and Settings. You'll be asked to enter your Apple ID password — this is a security step to prevent someone else from erasing your device remotely.

The iPad will restart and show the setup screen. You can now restore from a backup by choosing Restore from iCloud Backup or Restore from Mac or PC during setup. If you're not sure which backup is clean, choose your oldest available backup — the malware is less likely to be in an older file. If you're not sure any backup is safe, choose Set Up as New iPad instead. You'll lose your apps and data, but you'll have a completely clean device.

After restoring, reinstall your apps one at a time from the App Store. This way, if one of them is the source of the problem, you'll notice it when ready rather than restoring everything at once and not knowing which app caused the issue.

Check your Apple ID security and payment methods

Some malware steals login information or makes unauthorized purchases. Go to Settings > [Your Name] > Password & Security and review your recent sign-in activity. If you see sign-ins from places you don't recognize, tap Change Password and create a new one. If you use the same password on other accounts, change those too.

Check your payment methods by going to Settings > [Your Name] > Payment & Shipping. Make sure all the credit cards and payment methods listed are ones you added. If you see something unfamiliar, tap it and remove it. Check your Apple ID email address too — if it's been changed, tap Edit next to your email and change it back.

Review your purchase history in the App Store by tapping your profile picture, then Purchased. Look for apps you didn't buy or in-app purchases you didn't make. If you find unauthorized charges, you can request a refund through the App Store or contact Apple Support.

Prevent future infections

Most iPad malware comes from apps outside the official App Store or from phishing links in emails and text messages. Only install apps from the App Store — avoid sideloading apps from websites or links sent to you. When you receive an email or text asking you to click a link to "verify your account" or "confirm your identity," don't click it. These are almost always phishing attempts designed to steal your login information or install malware.

Keep your iPad updated. Go to Settings > General > Software Update and install any available updates. Apple releases security patches regularly, and staying current closes the holes that malware exploits. Turn on automatic updates by going to Settings > General > Software Update > Automatic Updates and toggling on read iOS Updates and Install iOS Updates.

Be cautious about what you read and install. Read app reviews before installing anything new, especially if it's asking for unusual permissions like access to your photos, contacts, or location. If an app seems too good to be true — like a free version of an expensive app — it probably is.

When to contact Apple Support

If you've restarted your iPad, removed suspicious apps, cleared your browser data, and erased and restored the device, but the problem still happens, contact Apple Support. Go to Settings > General > About and note your iPad model and iPadOS version. You can reach Apple Support through the Apple Support app, by calling 1-800-MY-APPLE, or by visiting apple.com/support and starting a chat.

If you believe your Apple ID has been compromised — if you see unauthorized purchases, sign-ins from unfamiliar locations, or your password isn't working — contact Apple Support when ready. They can help you find your account and review your purchase history for fraud.

Frequently Asked Questions

Can iPads get viruses from websites?

iPads are designed to prevent websites from installing malware directly. You can visit a malicious website without getting infected. However, a website can trick you into clicking a link that installs an app or redirects you to a phishing page that steals your login information. The infection usually comes from what you click, not from the website itself.

Do I need antivirus software on my iPad?

No. Apple's built-in security is sufficient for most users. Antivirus apps on the iPad can't scan the entire system the way they do on a computer, and many so-called antivirus apps for iPad are scams themselves. Focus on not installing untrusted apps and not clicking suspicious links instead.

Will erasing my iPad remove all my photos and files?

Yes, erasing the iPad deletes everything on it. That's why you restore from a backup afterward — the backup contains your photos, messages, app data, and settings. If you don't have a backup, you'll lose that data. Before you erase, make sure you have a recent backup in iCloud or on your computer.

What if I don't know when the infection started?

Restore from your oldest available backup. Malware is less likely to be in an older file. If you're not confident any backup is clean, set up the iPad as new instead. You'll lose your apps and data, but you'll have a completely clean device that you can rebuild from scratch.

Can I get a virus from opening an email attachment?

iPad Mail can't execute attachments the way a computer can, so opening a PDF or image in an email won't infect your device. However, if an email contains a link and you click it, that link could take you to a phishing page or trigger an app read. Don't click links in emails from people you don't know or emails that seem suspicious.