How To Disable or Enable Cookies in Safari, Chrome, Firefox, & More [2026 Guide]

Want to know how to disable cookies and enable them for better privacy and device performance? We’ll show you what you need to know in this guide.

In most browsers, cookie controls are found in Settings, usually under Privacy, Privacy & Security, or Site settings. Enabling cookies can help websites load properly, remember your logins, and save preferences. Disabling some or all cookies can reduce cross-site tracking and limit how much of your browsing activity is used for advertising. 

Cookies are easy to misunderstand. Our internet cookies study found fewer than 40% of people know what cookies actually do, yet 1 in 4 blindly accept them.

Below, you’ll learn how to enable or disable cookies in all major browsers on both desktop and mobile devices, including Safari, Chrome, Firefox, and Microsoft Edge.

In this article
Where are cookie settings in each browser?
Google Chrome
Apple Safari
Microsoft Edge
Mozilla Firefox
Opera
Samsung Internet
When should you disable cookies?
When should you enable cookies?
Other ways to block cookies and trackers
Bottom line
FAQs

Visit our digital privacy resource center for more guides on internet cookies and safe browsing.

Where are cookie settings in each browser?

Use this quick-reference table to find cookie controls in each browser. Keep in mind that some browsers focus on blocking third-party cookies rather than offering a simple on/off switch for all cookies.

Browser Where to find it What to select
Chrome (desktop) Settings → Privacy and security → Third-party cookies Block third-party cookies
Safari (Mac) Safari → Settings → PrivacyPrevent cross-site tracking
Edge Settings → Cookies and site permissions Block third-party cookies
Firefox Settings → Privacy & Security  Enhanced Tracking Protection
Samsung Internet Settings → Sites and downloads → Site permissions → Cookies Allow / block cookies
Opera Settings → Privacy & security Third-party cookies

How to disable or enable cookies in Chrome

Managing your Chrome cookies is fairly straightforward unless you have an iOS device. Here’s how to enable and disable your browser cookies, plus a workaround for managing cookies on your iPad or iPhone.

Desktop

To manage cookies in Chrome on desktop, open the three-dot menu in the upper-right corner, select Settings, and follow these steps:

  1. From the drop-down menu, click Settings.
  2. Click the Privacy and security tab on the left-hand menu.

    Google Privacy and security settings with a red outline around Third-party cookies
  3. Select Third-party cookies.

    Block third-party cookies in Chrome
    Block third-party cookies in Chrome
Allow all cookies Allows sites to use third-party cookies to personalize content and ads, but blocks sites from using third-party cookies in incognito mode
Block third-party cookies Blocks sites from using third-party cookies to personalize content and ads 
See all site data and permissionsLets you see which websites have your saved data and how many cookies are stored.

Google spent years planning to remove third-party cookies from Chrome, then reversed course in 2025. Cookies stay on by default, and you control them in the settings above.

Android

The steps for enabling or disabling cookies in Chrome on your Android device are similar to the desktop version.

  1. Tap the three vertical dots in the top right of the browser window, then choose Settings.
  2. Tap Site Settings and choose Third-party cookies.
  3. From here, you can choose to allow or block third-party cookies.

iPhone and iPad

Chrome on iPhone and iPad doesn't currently offer a setting to block or enable cookies directly in the app. Cookies are generally allowed by default, but you can clear stored browsing data by following these steps:

  1. Open Chrome and tap the three horizontal dots in the bottom-right corner of your screen.
  2. Scroll right and tap Settings.
  3. Tap Privacy and security, then Delete Browsing Data.
  4. Choose the items you want to clear, such as Browsing history, Cookies and other site data, and Cached images and files. Then set the time range.
  5. Tap Confirm at the top-right corner of your screen.

How to disable or enable cookies in Safari

Learning how to disable or enable cookies on Safari is straightforward:

Desktop

  1. Open Safari, click Safari in the top navigation bar, and choose Settings.
  2. Select the Privacy tab.
  3. Turn on Prevent cross-site tracking to limit third-party tracking across websites.
  4. For a stricter setting, turn on Block all cookies to stop websites from saving new cookies entirely.

For most people, blocking cross-site tracking is the better balance because fully blocking all cookies can cause websites to stop working correctly.

iPhone or iPad

If you’re using an iOS device, you’ll find cookies under your iPhone’s or iPad’s Settings.

  1. Open your device's Settings app.
  2. Scroll down and tap Apps.
  3. Select Safari.
    Select the Safari app to manage Safari cookies and other security features
    Select the Safari app to manage Safari cookies and other security features
  4. To reduce tracking, turn on Prevent Cross-Site Tracking.

  5. For more privacy, you can also set Hide IP Address to Trackers or Trackers and Websites, depending on your device and iOS version.

  6. If you want to remove existing website data, go back to Safari’s Settings and select Clear History and Website Data. 

  7. The pop-up provides a time range. Select the period you want to clear, then click Clear History.
    Select time range to clear history on Safari for iOS
    Select time range to clear history on Safari for iOS

On iPhone and iPad, Safari settings focus more on tracking prevention and clearing saved data than on a simple cookie on/off switch.

How to disable or enable cookies in Edge

Microsoft Edge separates tracking prevention from cookie controls, so review both settings.

  1. Click the three dots, then scroll to Settings.
  2. Select Privacy, search, and services from the left-hand side. 
  3. Click Tracking prevention and select your tracking preference: Basic, Balanced, or Strict.

Microsoft Edge tracking prevention settings

To enable or disable cookies in Microsoft Edge, follow these steps:

  1. In Settings, select Privacy, search, and services. 
  2. Click Cookies.
  3. Turn Block third-party cookies on or off, depending on your preference.

Microsoft Edge cookies settings

Bonus: Selecting See all cookie and site data lets you see which websites have your saved data and how many cookies are stored.

How to disable or enable cookies in Firefox

To manage cookies in Mozilla Firefox, follow these steps:

  1. From the Firefox menu, go to Settings.
    Select Settings to manage cookies on Firefox
    Select Settings to manage cookies on Firefox
  2. Select Privacy & Security.
    Navigate to Privacy & Security to manage cookie preferences in Firefox
    Navigate to Privacy & Security to manage cookie preferences
  3. Under Enhanced Tracking Protection, choose Standard, Strict, or Custom.
  4. Standard is the default and blocks many cross-site trackers while allowing most websites to work normally.
  5. Strict blocks more trackers and cookies, but it may cause some sites to break.
  6. If you want more control, Custom lets you choose which trackers and cookies Firefox blocks.

How to disable or enable cookies in Opera

Opera lets you manage third-party cookies, clear saved site data, and review which websites have stored information in your browser. Here’s how to adjust those Opera settings:

  1. Open Opera, then click the three horizontal bars in the top-right corner to open the Easy Setup menu.
  2. Scroll down and click Go to Full Browser Settings.
    Scroll down to Full Browser Settings in Opera
    Scroll down to Full Browser Settings in Opera
  3. Click the Privacy & Security tab.
    Navigate to Privacy & security tab in Opera browser
    Navigate to Privacy & security tab in Opera browser
  4. Scroll to the cookie section. Use Delete browsing data to remove saved cookies, or open Third-party cookies to choose whether Opera allows or blocks them.
    Disable third-party cookies in Opera
    Disable third-party cookies in Opera
  5. To delete all cookies, click See all site data and permissions.
    Block third-party trackers and delete all cookie data in Opera
    Block third-party trackers and delete all cookie data in Opera
  6. Select which cookie data to delete by clicking the corresponding trash can.
    Delete individual site cookies in Opera
    Delete individual site cookies in Opera

How to enable or disable cookies on Samsung Internet

Samsung Internet comes preinstalled on many Samsung Galaxy phones and tablets. To manage cookie settings for all websites, follow these steps:

  1. Go to Settings or the Settings app and select Apps.
  2. Locate and select Samsung Internet.
  3. Tap Samsung Internet settings.
  4. Select Sites and downloads.
  5. Tap Site permissions and select Cookies at the top.
  6. Select Allow all cookies, Block third-party cookies, or Block all cookies.

When should you disable cookies?

Disabling some cookies can improve privacy, especially on shared devices or if you want to reduce how much advertisers and data brokers track your activity across websites. You can also combine stricter cookie settings with private browsing modes and other privacy tools for better protection.

Cookies can also create security risks in some situations. For example, if someone gains access to a session cookie, they may be able to sign in as you on a website without knowing your password. That’s one reason it can help to clear cookies on shared or public devices.

Clearing old cookies and site data can sometimes fix browser glitches, sign-in problems, or outdated site settings. However, cookies usually use very little storage, so disabling them typically doesn't provide a major performance boost on its own.

You may want to disable or block third-party cookies if your main goal is reducing targeted ads and cross-site tracking. If you only want a quick privacy reset, clearing your browser cookies may be enough.

When should you enable cookies?

Enabling cookies can make websites more convenient to use. For example, cookies help sites keep you signed in, remember shopping cart items, save language preferences, and load pages with your preferred settings. 

You may also need cookies turned on for certain websites to function properly. Some login pages, streaming platforms, online stores, and paywalled sites won’t work as expected if essential cookies are blocked. 

If you want a balance between convenience and privacy, consider allowing first-party cookies while blocking third-party cookies where your browser gives you that option. According to our research, 87% of users notice hyper-personalized ads, thanks to cookies. 

Circle chart showing how many people see personalized ads

Other ways to block cookies and trackers

If you want more privacy without changing cookie settings in every browser you use, other tools can help reduce tracking. Depending on the tool, they may block ads, limit trackers, hide your IP address, or reduce the number of consent pop-ups you see.

Ad blockers

Ad blockers can reduce many ads, scripts, and trackers before they load in your browser. Some also include privacy features that limit advertising-related tracking technologies, though they don't replace your browser’s own cookie controls.

Total Adblock is one of the best ad blockers we tested for tracker blocking. It's easy to set up, works independently once you've installed the extension, and even gets around annoying YouTube ads.

#1 Adblocker — Even Blocks YouTube Video Ads
5.0
Editorial Rating
Claim Deal
On Total Adblock's website
2026 Editors’ Choice
Best Overall Ad Blocker
Ad Blocker
Total Adblock
PROMOTION: Get 80% Off
  • Top ad blocker that historically scores 100/100 on AdBlock Tester, passing every banner, interstitial, pop-up, and contextual ad test
  • Successfully blocked YouTube ads in our testing, one of the trickier platforms for ad blockers to handle consistently
  • Works across Chrome, Edge, Safari, and Opera, plus Android and iOS mobile apps

Total Adblock also offers a feature called cookie consent cutter. In addition to blocking third-party cookies and hidden trackers, Total Adblock lets you skip cookie consent banners entirely. During testing, we didn't have to "accept" any cookies because Total Adblock automatically rejected unwanted cookies and accepted the first-party cookies, which are the default cookies necessary for a smooth browsing experience. 

Total Adblock Premium cookie consent cutter
Total Adblock Premium cookie consent cutter

VPNs

A virtual private network (VPN) encrypts your internet traffic and hides your IP address from the websites and networks you connect to. That can improve privacy, especially on public Wi-Fi, but a VPN does not automatically block all cookies. For the best results, use a VPN alongside browser privacy settings or tracker-blocking tools. Two top-tested VPNs with ad-blocking features include NordVPN and Surfshark. 

NordVPN Threat Protection blocks risky websites, stops web tracking, removes ads, and protects your device from viruses.

NordVPN Threat Protection Pro's list of intrusive ads blocked on Forbes.com

Surfshark is one of the more affordable VPN services, making it a great option for users who need a digital security suite. Its CleanWeb feature blocks ads, malware, and trackers when you have an active VPN connection.

The end page of a YouTube video with the Surfshark CleanWeb enabled

Secure browsers

Privacy-focused browsers can block many trackers by default and may offer stronger anti-fingerprinting and privacy protections than standard browsers. They can be a good option if you want more protection without manually adjusting every setting.

If you’re looking for a secure privacy browser, a few examples include Tor, Opera, Mozilla Firefox, DuckDuckGo, and Mullvad Browser.

Bottom line

Learning how to enable or disable cookies gives you more control over how websites work on your devices and how much of your activity is tracked online. For most people, the best starting point is to allow necessary site cookies while blocking third-party tracking cookies when available.

If you want even more privacy, combine your browser’s cookie settings with tracker-blocking tools, a privacy-focused browser, or a VPN.

FAQs

Is it good to disable cookies?

It’s good to disable cookies when you’re concerned about privacy and the possibility of security threats. To improve device performance, you may want to disable cookies for better results.

Should you allow all cookies?

You can allow all cookies, but we recommend declining third-party cookies. These cookies allow websites to gather your browsing data even when you’re not visiting that particular site. If you want to keep your personal information private, allowing all cookies is not advisable.

How do you stop a site from asking you to accept cookies?

You can stop a website from asking you to accept cookies by blocking cookies under your privacy settings. You can also use secure browsers, VPNs, or browser extensions to keep your internet activity more private.


#1 Adblocker — Even Blocks YouTube Video Ads
5.0
Editorial Rating
Claim Deal
On Total Adblock's website
2026 Editors’ Choice
Best Overall Ad Blocker
Ad Blocker
Total Adblock
PROMOTION: Get 80% Off
  • Top ad blocker that historically scores 100/100 on AdBlock Tester, passing every banner, interstitial, pop-up, and contextual ad test
  • Successfully blocked YouTube ads in our testing, one of the trickier platforms for ad blockers to handle consistently
  • Works across Chrome, Edge, Safari, and Opera, plus Android and iOS mobile apps

Author Details
Kate Quinlan is a Senior Editor at All About Cookies, where she has tested dozens of digital security tools and contributed to 400+ articles on data security, web building & hosting, VPNs, ad blockers, parental controls, and more. Before joining AAC, she managed a team of more than 150 writers at SuperSummary, where she developed editorial standards at scale. She holds a B.A. in Professional Writing from Kutztown University.
Steph Trejos is a Certified Anti-Money Laundering Specialist (CAMS), a credential that reflects deep expertise in financial crime, fraud patterns, and cyber threats. As a Senior Product Testing Editor at All About Cookies, she has personally evaluated nearly 200 digital security products and brings that forensic rigor to every review she oversees. Before joining AAC, she produced publications on financial crime and cyber threats at ACAMS.