What cookies are and why websites ask for them

A cookie is a small file your browser stores on your device. When you visit a website, that site can ask your browser to save information — like your login details, what you put in a shopping cart, or your language preference. The next time you visit, the website reads that cookie and remembers you.

Websites ask you to turn on cookies because without them, you have to log in again every time you visit, your cart empties, and the site can't remember your settings. Some sites won't work at all if cookies are off — you'll see a blank page or get stuck on a login screen.

Most browsers turn cookies on by default. If a website tells you cookies are disabled, it usually means you or someone else changed your browser settings, or you're using a privacy mode that blocks them.

Key Takeaways

  • Cookies are small files websites store on your device to remember you and your preferences between visits.
  • Most browsers allow cookies by default, so you only need to change settings if a website says they're blocked.
  • The steps to turn on cookies differ by browser — Chrome, Firefox, Safari, and Edge each have their own settings menu.
  • Privacy mode or incognito browsing blocks cookies automatically, so switching to normal browsing often solves the problem.
  • You can allow cookies for one website while blocking them for others using your browser's site-specific settings.

How to enable cookies in Chrome

Open Chrome and click the three vertical dots in the top right corner. Select Settings, then click Privacy and security on the left side. Choose Cookies and other site data.

You'll see three options. Select Allow all cookies to turn them on completely. If you want more control, choose Block third-party cookies in Incognito (which blocks some tracking cookies but allows regular ones) or Block all cookies (which turns them off). For most websites to work, you need the first option selected.

If you're in Incognito mode, cookies are blocked by default and won't save after you close the window. Switch to a regular Chrome window to use cookies normally.

How to enable cookies in Firefox

Open Firefox and click the three horizontal lines in the top right corner. Select Settings, then go to Privacy & Security on the left. Under the Cookies and Site Data section, make sure the checkbox next to Cookies and site data is checked.

Below that, you'll see options for what to accept. Choose Accept cookies and site data from websites to turn them on. If you see Only accept cookies from sites I visit selected, that's fine — it still allows cookies but blocks some tracking. The option Never accept cookies turns them off completely.

Firefox also has a Private Browsing mode that blocks cookies. If you're in a private window, switch to a regular window to use cookies.

How to enable cookies in Safari

Open Safari and click Safari in the menu bar at the top of your screen. Select Settings (or Preferences on older Macs), then click the Privacy tab.

Look for the section labeled Cookies and website data. You'll see options like Always allow, Only from websites you visit, or Never allow. Choose Always allow or Only from websites you visit to turn cookies on. The second option is Safari's default and works for most websites.

If you're using Safari's Private Browsing mode, cookies won't save. Open a regular Safari window instead.

How to enable cookies in Microsoft Edge

Open Edge and click the three dots in the top right corner. Select Settings, then click Privacy, search, and services on the left. Scroll down to Cookies and other site data.

You'll see a toggle switch next to Cookies and other site data. Make sure it's turned on (it should be blue). Below that, choose what type of cookies to allow — Allow all cookies is the most permissive setting and works for all websites.

Edge also has an InPrivate browsing mode that blocks cookies. If you opened an InPrivate window, switch to a regular Edge window to use cookies normally.

Allowing cookies for just one website

If you want to block cookies everywhere but allow them for one specific site, you can do that in most browsers. In Chrome, go to Settings > Privacy and security > Cookies and other site data > Sites that can always use cookies. Click Add and type the website address.

In Firefox, visit the website, click the lock icon next to the address bar, and look for Cookies. You can set that site to allow cookies while keeping them blocked elsewhere. Safari and Edge have similar site-specific controls in their privacy settings.

This approach is useful if you trust one site but want to limit tracking on others. The website you allow will work normally, while your other browsing stays more private.

What to do if cookies are still not working

After turning on cookies, refresh the website by pressing Ctrl+R (Windows) or Command+R (Mac). Sometimes the page cached before you changed the setting and needs to reload.

If the site still doesn't work, check whether you're in a private or incognito window — that mode blocks cookies no matter what your settings say. Switch to a regular window and try again.

Clear your browser cache and cookies, then turn them back on. In Chrome, go to Settings > Privacy and security > Clear browsing data. In Firefox, go to Settings > Privacy & Security > Cookies and Site Data > Clear Data. After clearing, refresh the website and log in again.

If nothing works, the website itself may have a problem, or your browser may need an update. Check your browser's settings menu for an update option, or try the website in a different browser to see if it works there.

Frequently Asked Questions

Are cookies a security risk?

Cookies themselves are not dangerous — they're just text files. However, some websites use cookies to track your browsing across the internet, which is why many people turn on privacy features. Blocking third-party cookies (which most browsers do by default now) stops most tracking while still letting websites work normally.

Will turning on cookies slow down my browser?

No. Cookies are tiny files and have no noticeable effect on speed. Your browser performance depends on things like how many tabs you have open, what extensions you've installed, and how much RAM your device has.

What's the difference between first-party and third-party cookies?

First-party cookies come from the website you're visiting — they remember your login and preferences. Third-party cookies come from other companies (like advertisers) and track you across multiple websites. Most browsers now block third-party cookies by default, which is why you may see a message asking about them.

Do I need to turn on cookies for every website?

No. Once you turn on cookies in your browser settings, they work for all websites automatically. You only need to change settings if a specific site asks you to, or if you want to block cookies for certain sites while allowing them for others.

What happens if I clear my cookies?

You'll be logged out of websites, your shopping carts will empty, and sites will forget your preferences. You'll have to log in again and reset your settings. Clearing cookies is sometimes useful if a website isn't working properly, but you'll lose your saved information.