How to Enable or Disable Cookies in Chrome, Safari, Firefox and Edge
Quick answer: Every browser keeps its cookie controls in its privacy settings. For most people, the best setting is to block third-party cookies and keep first-party cookies on: that stops most cross-site tracking without logging you out of sites.
| Browser | Where the setting is | Recommended option |
| Chrome (desktop) | Settings > Privacy and security > Third-party cookies | Block third-party cookies |
| Safari (Mac) | Safari > Settings > Privacy | Prevent cross-site tracking (on by default) |
| Safari (iPhone, iPad) | Settings > Apps > Safari | Prevent Cross-Site Tracking (on by default) |
| Edge | Settings > Cookies and site permissions > Manage and delete cookies and site data | Block third-party cookies |
| Firefox | Settings > Privacy & Security > Enhanced Tracking Protection | Standard or Strict |
| Opera | Settings > Privacy & security > Third-party cookies | Block third-party cookies |
| Brave | Settings > Shields > Block cookies | Block third-party cookies (default) |
To turn cookies back on, follow the same path and switch the setting back.

A browser cookie is a small file a website saves in your browser. It remembers things like your login, language and shopping cart, and it can also track what you do across sites.
| Cookie type | Set by | What it does | Block it? |
| First-party | The site you’re on | Keeps you logged in, saves your cart and settings | No, sites break without it |
| Third-party | Another domain, usually an ad or analytics company | Tracks you across websites to target ads | Yes, for privacy |
| Session | The site you’re on | Deleted when you close the browser | No |
| Persistent / tracking | First or third party | Stays for days or years to recognize you later | Third-party ones, yes |
Blocking all cookies gives the most privacy, but you’ll be logged out everywhere, carts won’t work and many sites will show errors. Blocking only third-party cookies keeps sites working while cutting most ad tracking.
Chrome still allows third-party cookies by default. In April 2025, Google dropped its plan to phase them out and said users can keep choosing in Chrome’s settings (Google). In October 2025 it also retired most Privacy Sandbox technologies. Safari, Firefox and Brave already block most third-party tracking by default.
| What you block | What still works | What breaks or changes |
| Third-party cookies only | Logins, carts, site settings, most sites | Fewer targeted ads; some embedded videos, comments or single sign-on buttons may fail |
| All cookies | Reading public pages | Logins, shopping carts, saved preferences, many checkouts and some captchas |
| Cookies cleared on exit | Everything during the session | You’re logged out every time you close the browser |
Try blocking third-party cookies for a week before going further. If a site you trust stops working, add it as an exception instead of turning cookies back on everywhere.
Desktop (Windows, Mac, ChromeOS):
- Click the three dots in the top-right corner and open Settings.
- Go to Privacy and security > Third-party cookies.
- Choose Block third-party cookies, Block third-party cookies in Incognito, or Allow third-party cookies.
- To block all cookies, go to Privacy and security > Site settings > Additional content settings > On-device site data and select Don’t allow sites to save data on your device.
- To allow cookies for one site, add it under Allowed to use third-party cookies or Allowed to save data on your device.
Google’s Chrome cookie help page has the latest menu names.
Android:
- Open Chrome, tap the three dots and go to Settings.
- Tap Privacy and security > Third-party cookies.
- Pick the option you want.
iPhone and iPad: Chrome on iOS doesn’t have its own cookie switch. It follows Apple’s rules, so use Settings > Apps > Safari, or clear cookies in Chrome under Settings > Privacy and security > Delete browsing data.
Planet VPN’s Chrome extension includes a Cookie Blocker and Tracker Blocker on Premium.
Mac:
- Open Safari and choose Safari > Settings (or press Command + comma).
- Click Privacy.
- Keep Prevent cross-site tracking on to block third-party tracking.
- Tick Block all cookies to turn every cookie off, or untick it to turn cookies back on.
- To remove saved cookies, click Manage Website Data > Remove All.
iPhone and iPad:
- Open Settings > Apps > Safari (on iOS 17 and earlier: Settings > Safari).
- Turn on Prevent Cross-Site Tracking.
- Turn on Block All Cookies to disable cookies, or off to enable them.
- To delete cookies, tap Clear History and Website Data.
Microsoft Edge
- Click the three dots and open Settings.
- Go to Cookies and site permissions > Manage and delete cookies and site data.
- Turn off Allow sites to save and read cookie data to block all cookies, or turn on Block third-party cookies.
- Add sites under Allow to keep cookies on for them.
Edge also has Tracking prevention (Basic, Balanced, Strict) under Privacy, search, and services. Planet VPN is available as an Edge extension too.
Mozilla Firefox
- Open the menu (three lines) > Settings > Privacy & Security.
- Under Enhanced Tracking Protection, choose Standard, Strict or Custom.
- In Custom, tick Cookies and choose what to block, from cross-site tracking cookies to All cookies.
- Click Manage Exceptions to allow cookies on specific sites.
Standard mode already isolates cookies per site with Total Cookie Protection (Mozilla). For extra privacy, add the Planet VPN Firefox extension.
Opera
- Open Settings (Alt + P on Windows).
- Go to Privacy & security > Third-party cookies.
- Choose to allow or block third-party cookies, and add exceptions for sites you trust.
Planet VPN also works as an Opera extension.
Brave
- Open Settings > Shields.
- Under Block cookies, choose Only cross-site (the default), All, or Disabled.
- To change it for one site, click the lion icon in the address bar.
Blocking stops new cookies. To remove the ones already saved, clear them:
| Browser | Where to clear cookies | Shortcut |
| Chrome | Settings > Privacy and security > Delete browsing data > Cookies and other site data | Ctrl + Shift + Delete (Windows), Command + Shift + Delete (Mac) |
| Edge | Settings > Privacy, search, and services > Delete browsing data > Choose what to clear | Ctrl + Shift + Delete |
| Firefox | Settings > Privacy & Security > Cookies and Site Data > Clear Data | Ctrl + Shift + Delete |
| Safari (Mac) | Safari > Settings > Privacy > Manage Website Data > Remove All | — |
| Safari (iPhone) | Settings > Apps > Safari > Clear History and Website Data | — |
| Chrome (Android) | Chrome > three dots > Delete browsing data | — |
To clear cookies for one site only, click the icon left of the address bar (a lock or settings icon) and open its cookies or site data. Clearing cookies logs you out of the sites you remove.
This message means the site needs a cookie to log you in or remember a step, and your browser blocked it. Try these in order:
- Allow cookies for that site only. Add it to the cookie exceptions in your browser (see the steps above), then reload the page.
- Check third-party cookies. Login pages that use another domain, like a payment or sign-in provider, may need third-party cookies for that site.
- Leave private or Incognito mode. Some browsers block more cookies there.
- Pause privacy extensions and ad blockers for the site, then reload.
- Clear that site’s cookies and cache, which fixes corrupted cookies.
- Check the date and time on your device. A wrong clock makes cookies expire instantly.
- Update your browser. Old versions can fail on newer cookie rules.
Once the page works, you can keep strict settings for every other site.
Cookies vs cache vs browsing history
Browsers store 3 kinds of data, and “clear browsing data” lets you pick each one:
| Feature | Cookies | Cache | Browsing history |
| What it is | Small files sites use to remember you | Saved copies of images, scripts and pages | A list of the pages you visited |
| Why it exists | Logins, carts, preferences, tracking | Pages load faster on your next visit | So you can find pages again |
| Privacy risk | High for third-party cookies | Low | Medium, mainly on shared devices |
| Clearing it | Logs you out | Pages load slower once | Removes autocomplete suggestions |
In the EU and the UK, privacy law requires sites to ask before they set cookies that aren’t strictly necessary, such as analytics and advertising cookies. That’s why so many sites show a consent banner.
You can usually choose Reject all or Necessary only. Sites must still work for the basic things you asked for, like logging in and checkout. Your choice is saved in a cookie, so clearing cookies brings the banner back.
Other ways to limit tracking
- Private browsing: Incognito and private windows delete cookies when you close them. Chrome’s Incognito blocks third-party cookies by default. See VPN vs Incognito mode for what each one hides.
- Clear cookies regularly, or set Firefox and Edge to delete them when you close the browser.
- Ad and tracker blockers stop many tracking scripts before they set cookies.
- Reject non-essential cookies in cookie consent banners. EU and UK rules require sites to ask.
- Watch for fingerprinting. Some trackers identify you from your browser and device settings, without cookies (what is browser fingerprinting).
Does a VPN block cookies? No. A VPN like Planet VPN encrypts your connection and hides your IP address, so sites can’t use your IP to locate or link you. But cookies live in your browser, and a site can still read them with the VPN on. Use a VPN together with the cookie settings above. Planet VPN’s browser extension also includes a Cookie Blocker and Tracker Blocker on Premium.
Blocking cookies doesn’t stop every form of tracking. Ad and analytics companies also use:
- Browser fingerprinting: combining your screen size, fonts, browser version and other settings into an ID that’s often unique to you.
- Supercookies: data stored in places cookie settings don’t reach, such as the cache or certain browser storage features. Modern browsers have closed many of these.
- Tracking pixels: tiny invisible images in emails and pages that report when you open them.
- Your IP address: links your visits together and reveals your approximate location.
- Logged-in accounts: if you’re signed in to a big platform, it can recognize you across sites that use its login or widgets.
A privacy-focused browser, a tracker blocker and a VPN together cover far more than cookie settings alone. Here’s what a VPN hides and what it doesn’t.
FAQ
Open your browser’s privacy settings, find the cookie option and switch it to allow. The quick-reference table at the top shows where it is in Chrome, Safari, Edge, Firefox, Opera and Brave.
In the same privacy settings, choose Block all cookies. To keep sites working, block only third-party cookies instead.
Blocking third-party cookies is good for privacy and rarely breaks anything. Blocking all cookies breaks logins, carts and saved settings on most sites, so it’s only worth it for short, private sessions.
Go to Settings > Apps > Safari (Settings > Safari on iOS 17 and earlier) and turn off Block All Cookies. Chrome and other browsers on iPhone follow the same rules.
Add the site to your browser’s cookie exceptions: the allowed sites list in Chrome, Allow in Edge, or Manage Exceptions in Firefox. The rest of the web keeps your stricter setting.
Yes. In April 2025, Google dropped its plan to remove them and said users can keep choosing in Chrome’s settings. Chrome’s Incognito mode blocks them by default.
Browsers have no built-in switch for consent banners. Some ad-blocker filter lists hide them, but the reliable option is to choose Reject all or Necessary only once per site.
No. A VPN hides your IP address and encrypts your traffic, but cookies live in your browser and sites can still read them. Use a VPN together with cookie settings or a cookie blocker.
Cookies can’t run code or install malware. The risks are privacy, from third-party tracking, and account theft, if malware or a hacker steals the session cookies that keep you logged in.
No. Saved passwords are stored separately. Clearing cookies logs you out of sites, but the browser can still fill in your saved password.
It deletes all cookies when you close the private window, and Chrome’s Incognito blocks third-party cookies by default. Sites can still use cookies while the window is open. See does a VPN work in Incognito.
The site may need third-party cookies, an extension may be blocking them, or your device clock may be wrong. See the troubleshooting steps above.