What pop-ups are and why they appear

A pop-up advertisement is a window that opens on top of the webpage you are viewing, usually without you clicking anything to make it appear. It shows an ad — for a product, service, or sometimes a fake warning — and sits between you and the content you wanted to see.

Pop-ups exist because advertisers pay websites to display them. Some websites use pop-ups to collect your email address before letting you read an article. Others appear because malware or an unwanted browser extension installed itself on your computer. The difference matters, because the method to stop them depends on where they are coming from.

Most modern browsers block pop-ups automatically now, but some still get through — especially if a website you trust is generating them, or if your browser settings have been changed by software you installed.

Key Takeaways

  • Your browser's built-in pop-up blocker stops most pop-ups automatically, but you can check that it is turned on in your browser settings.
  • If pop-ups keep appearing on one specific website, that website is generating them intentionally, and you may need to leave that site or use a different browser.
  • Pop-ups that appear across all websites you visit usually come from a browser extension or malware, and removing the extension or running a scan will stop them.
  • Browser extensions that claim to block ads can themselves be the source of pop-ups, so install only extensions from your browser's official store.

Check your browser's pop-up blocker setting

Every major browser — Chrome, Firefox, Safari, and Edge — includes a built-in pop-up blocker that is turned on by default. If pop-ups are getting through, the first step is to confirm the blocker is still active.

In Chrome, click the three-line menu in the top right, select Settings, then Privacy and Security, then Site Settings. Scroll down to Pop-ups and redirects and make sure it says "Blocked" next to the toggle. In Firefox, go to Settings, then Privacy and Security, and look for the Permissions section — Pop-ups should be checked. In Safari on Mac, go to Safari menu, then Preferences, then Security, and check "Block pop-up windows". In Edge, click the three-dot menu, select Settings, then Privacy, search, and services, and look for Pop-ups under Site permissions.

If the blocker is already on and pop-ups are still appearing, the pop-ups may be coming from a website you are visiting intentionally, or from an extension or malware on your computer.

Remove browser extensions that cause pop-ups

Browser extensions are small programs that add features to your browser. Some are useful; others are designed to show you ads or collect your browsing data. If pop-ups started appearing suddenly across multiple websites, an extension is often the cause.

In Chrome, click the puzzle-piece icon in the top right (or the three-dot menu, then More Tools, then Extensions). Look through the list for anything you do not recognize or do not remember installing. Click the trash icon next to it to remove it. In Firefox, click the menu button, select Add-ons and Extensions, then Extensions, and click Remove next to anything suspicious. In Safari, go to Safari menu, then Preferences, then Extensions, and uncheck or delete extensions you do not use. In Edge, click the three-dot menu, select Extensions, and remove anything unfamiliar.

After removing an extension, restart your browser and visit a few websites to see if the pop-ups stop. If they do, the extension was the problem. If they continue, move to the next step.

Run a malware scan if pop-ups persist

If pop-ups appear across all websites even after checking your blocker and removing extensions, malware may have installed itself on your computer. Malware is software designed to show ads, steal information, or slow down your system.

On Windows, use the built-in Windows Defender. Click the Start menu, type "Windows Security", and open it. Click Virus and threat protection, then Scan options, select Quick scan, and click Scan now. This takes a few minutes and will remove most common malware. On Mac, malware is less common, but you can read Malwarebytes (a free version exists) and run a scan. On Chrome OS, malware is extremely rare because the system is designed to prevent it, but you can restart your device in Safe Mode by holding Escape and pressing the Refresh key, then Power, then Restart.

After the scan completes, restart your computer and check whether the pop-ups have stopped. If they have, malware was the cause and the scan removed it. If pop-ups still appear, they are likely coming from a specific website you are visiting.

Deal with pop-ups from websites you are visiting

Some websites generate pop-ups intentionally — to collect your email, show you an ad, or warn you about something (sometimes falsely). If pop-ups appear only on one website or a few specific sites, that website is generating them, not your browser or an extension.

Your browser's pop-up blocker should stop most of these automatically. If one gets through, close it by clicking the X button in the corner. Do not click anywhere else on the pop-up, because clicking the ad itself may take you to a malicious website or trigger a read. If a pop-up claims your device has a virus or needs an update, it is almost certainly fake — close it and ignore it.

If a website shows too many pop-ups to be usable, you have a few options: use a different browser (some websites behave differently in Chrome versus Firefox), use a browser extension designed to block ads (install only from your browser's official store), or stop visiting that website. Some ad-blocking extensions like uBlock Origin are legitimate and widely used, but always install from the official Chrome Web Store or Firefox Add-ons page, never from a random website.

Prevent pop-ups from appearing in the future

Beyond keeping your pop-up blocker on, a few habits reduce the number of pop-ups you see. Do not install browser extensions unless you recognize the developer and have a specific reason for it. Stick to extensions from your browser's official store — Chrome Web Store, Firefox Add-ons, Safari Extensions, or Microsoft Edge Add-ons. If you see an extension with thousands of reviews and a recent update date, it is more likely to be legitimate than one with no reviews or an update from years ago.

Be cautious about what websites you visit. Sites that host pirated movies, free software, or other content that is normally paid for often use aggressive pop-ups as a revenue source. If you find yourself on a site with constant pop-ups, leaving is usually the fastest solution.

Keep your operating system and browser updated. Updates often include security fixes that prevent malware from installing in the first place. On Windows, go to Settings, then Update and Security, and click Check for updates. On Mac, go to System Preferences, then Software Update. Most browsers update automatically, but you can check by clicking the menu and looking for an update option.

Frequently Asked Questions

Is it safe to click the X button on a pop-up to close it?

Yes, clicking the X button in the corner of a pop-up is safe. The X is designed to close the window. Never click anywhere else on the pop-up itself, because the entire ad area may be clickable and take you to a malicious website. If you cannot find an X button, close the entire browser tab or use Alt+F4 on Windows or Command+W on Mac to close the window.

Why do some websites ask me to turn off my ad blocker?

Websites use ads as their main source of income. When you use an ad blocker, the website cannot show you ads and cannot earn money from your visit. Some websites ask you to disable your blocker so they can display ads. You can choose to do this on websites you trust, or you can leave the site. The choice is yours.

Can I block pop-ups on my phone or tablet?

Yes. On iPhone and iPad, Safari has a built-in pop-up blocker that is on by default — go to Settings, then Safari, and toggle "Block Pop-ups" on. On Android, Chrome also blocks pop-ups by default, but you can confirm it by opening Chrome, clicking the three-dot menu, selecting Settings, then Site settings, then Pop-ups and redirects, and making sure it says "Blocked".

What should I do if a pop-up says my device has a virus?

Close it when ready and ignore it. These are fake warnings designed to scare you into clicking the pop-up or downloading something. Your browser and operating system do not show virus warnings in pop-ups — they use system notifications or settings pages. If you are concerned about malware, run a scan using Windows Defender or Malwarebytes, not by clicking a pop-up.

Do I need to buy antivirus software to stop pop-ups?

No. Windows Defender (built into Windows) and the malware scanner in macOS are sufficient for most users. Paid antivirus software offers extra features, but for pop-ups specifically, your browser's blocker and a free malware scan will solve the problem in almost all cases.