Cookies are small files that websites store on your computer to remember information about you

When you visit a website, it can ask your browser to save a cookie — a tiny text file that sits on your device. The next time you return to that site, your browser sends the cookie back. Websites use cookies to remember your login information, keep items in your shopping cart, remember your preferences, or track which pages you've visited. Without cookies enabled, many websites won't work properly: you'll get logged out unexpectedly, your cart will empty, or you'll see the same welcome message every time you load a page.

Most browsers come with cookies enabled by default, but some people turn them off for privacy reasons. If a website tells you that cookies are disabled, or if you're having trouble staying logged in or using site features, you'll need to turn them back on. The steps differ slightly depending on which browser you use.

Key Takeaways

  • Cookies are files websites store on your device to remember information like login details and shopping cart contents.
  • Most browsers allow cookies by default, but you may have disabled them yourself or your browser settings may have changed.
  • The steps to enable cookies are different for Chrome, Firefox, Safari, and Edge, but all are found in the browser settings menu.
  • You can enable cookies for all websites or just specific ones, depending on your privacy preferences.
  • If a website still doesn't work after you enable cookies, you may need to clear your browser cache or try a different browser.

Enable cookies in Google Chrome

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

You'll see three options. Block all cookies turns cookies off entirely. Block third-party cookies in Incognito allows most cookies but blocks some tracking cookies when you use Incognito mode. Allow all cookies enables cookies for all websites. Choose Allow all cookies to turn cookies on. If you want more control, you can also use the Sites that can always use cookies section to allow cookies only for specific websites you trust.

Enable cookies in Mozilla Firefox

Open Firefox and click the three horizontal lines in the top right corner. Select Settings. On the left, click Privacy & Security. Scroll down to the Cookies and Site Data section.

You'll see a checkbox labeled Cookies and site data. Make sure this box is checked. Below that, you can choose how Firefox handles cookies. The default option, Manage cookies and site data, allows cookies from websites you visit. If you want to block all cookies, that option is also available here. To turn cookies on, ensure the checkbox is marked and leave the setting on Manage cookies and site data.

Enable cookies in Safari

Open Safari and click Safari in the top menu bar. Select Settings (or Preferences on older versions). Click the Privacy tab.

Look for the section labeled Cookies and website data. You'll see options like Always block, Allow from websites I visit, and Allow from current website only. To enable cookies, select Allow from websites I visit. This setting lets websites you visit store cookies on your device while blocking cookies from sites you haven't visited, which helps protect your privacy.

Enable cookies in Microsoft Edge

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

You'll see a toggle switch next to Cookies and other site data. Make sure this toggle is turned on (it should be blue). Below that, you can choose your cookie preference: Block all cookies, Block only third-party cookies, or Allow all cookies. Select Allow all cookies to enable cookies for all websites. You can also add specific websites to an exceptions list if you want to block cookies only on certain sites.

What to do if a website still doesn't work after enabling cookies

Sometimes enabling cookies alone isn't enough. If a website still isn't working properly, try clearing your browser's cache and cookies. In Chrome, Firefox, Edge, and Safari, you can do this by pressing Ctrl+Shift+Delete (Windows) or Command+Shift+Delete (Mac). Select the time range All time, check the boxes for Cookies and Cached images and files, and click Clear data.

After clearing your cache, return to the website and log in again. Your browser will create fresh cookies as you use the site. If the website still doesn't work, the problem may be with the website itself or with your browser. Try opening the website in a different browser to see if it works there. If it does, you may need to update your original browser or contact the website's support team.

The difference between first-party and third-party cookies

Not all cookies are the same. First-party cookies are set by the website you're visiting. These are the ones that log you in, remember your preferences, and keep your shopping cart full. Third-party cookies are set by other companies — usually advertisers or analytics services — that have code running on the website you're visiting. These cookies track your behavior across multiple websites to show you targeted ads.

Most browsers now allow you to block third-party cookies while keeping first-party cookies enabled. This is a good middle ground: websites still work properly, but you see fewer targeted ads. If you choose to block all cookies, be aware that many websites will stop working correctly. If you block only third-party cookies, most sites will function normally while you get more privacy from tracking.

Frequently Asked Questions

Why does a website say cookies are disabled when I've enabled them?

Your browser settings may be correct, but the website might be checking for a specific type of cookie or your browser may not have created the cookie yet. Try refreshing the page, clearing your browser cache, or logging out and logging back in. If the problem persists, the website may have a technical issue or may require a browser update.

Will enabling cookies make my computer less secure?

Cookies themselves don't install malware or viruses. However, third-party cookies can track your browsing across websites. Most modern browsers let you block third-party cookies while allowing first-party cookies, which keeps websites working while reducing tracking. If security is a major concern, use your browser's private or incognito mode, which doesn't store cookies between sessions.

Can I enable cookies for only some websites?

Yes. All major browsers let you create exceptions. In Chrome, Firefox, Edge, and Safari, you can go to your cookie settings and add specific website addresses to an allow list or block list. This way, you can enable cookies for sites you trust while blocking them on others.

What happens if I clear my cookies?

Clearing cookies will log you out of websites, remove saved preferences, and empty shopping carts. Your browser will create new cookies the next time you visit those sites. This is useful if a website is malfunctioning or if you want to reset your preferences, but you'll need to log back in to your accounts.