What cookies are and why you might want to delete them
Cookies are small files that websites store on your computer to remember information about you — your login details, what you put in a shopping cart, your preferences. They make websites load faster and remember who you are when you come back. But they also let websites and advertisers track where you go online, which is why many people delete them regularly.
Deleting cookies clears out this stored data. It won't break your computer or delete your files. The next time you visit a website, you may have to log in again, and some sites may not remember your preferences until you visit them once more. That's the trade-off: less tracking, but a bit more setup work on sites you use often.
The steps to delete cookies differ depending on which browser you use — Chrome, Firefox, Safari, or Edge. Pick the section that matches what you have, and follow the numbered steps in order.
Key Takeaways
- Cookies are files websites store on your computer to remember you and track your activity, and deleting them removes that stored data.
- Deleting cookies won't harm your computer, but you may need to log in again to websites you use regularly.
- The steps to delete cookies are different for each browser, so you need to follow the instructions for the one you actually use.
- You can delete all cookies at once or set your browser to delete them automatically every time you close it.
- If you want to stay logged in to certain sites, most browsers let you protect those cookies while deleting the rest.
Delete cookies in Google Chrome
Step 1: Open Google Chrome and look at the top right corner. Click the three vertical dots (the menu button).
Step 2: From the menu that drops down, click Settings.
Step 3: On the left side of the screen, click Privacy and security.
Step 4: Click Clear browsing data. A box will pop up.
Step 5: At the top of the box, make sure the time range is set to what you want. If you want to delete all cookies ever, click the dropdown and select All time. If you only want to delete cookies from the last week, select Last 7 days.
Step 6: Check the box next to Cookies and other site data. You can leave the other boxes unchecked unless you want to delete your browsing history and cached images too.
Step 7: Click the blue Clear data button. Chrome will delete the cookies you selected and close the box.
Delete cookies in Mozilla Firefox
Step 1: Open Mozilla Firefox and click the three horizontal lines (the menu button) in the top right corner.
Step 2: Click Settings.
Step 3: On the left side, click Privacy & Security.
Step 4: Scroll down until you see the section called Cookies and Site Data. Click the button that says Clear Data.
Step 5: A box will pop up. Make sure the box next to Cookies and Site Data is checked. Leave Cached Web Content unchecked unless you want to delete that too.
Step 6: Click Clear. Firefox will delete your cookies and close the box.
Delete cookies in Safari
Step 1: Open Safari. At the very top of your screen (above the address bar), click Safari in the menu bar.
Step 2: From the dropdown menu, click Settings (or Preferences on older Macs).
Step 3: Click the Privacy tab at the top of the window.
Step 4: Click the button that says Manage Website Data.
Step 5: You will see a list of websites that have stored cookies on your computer. To delete all of them at once, click Remove All. To delete only certain ones, click on a website name and then click Remove.
Step 6: Close the window. Your cookies are now deleted.
Delete cookies in Microsoft Edge
Step 1: Open Microsoft Edge and click the three dots (the menu button) in the top right corner.
Step 2: Click Settings.
Step 3: On the left side, click Privacy, search, and services.
Step 4: Under the section called Clear browsing data, click the button that says Choose what to clear.
Step 5: A box will pop up. At the top, use the dropdown to pick your time range. Select All time to delete all cookies, or pick a shorter period.
Step 6: Check the box next to Cookies and other site data. Leave other boxes unchecked unless you want to delete those too.
Step 7: Click Clear now. Edge will delete your cookies.
Set your browser to delete cookies automatically
If you want your browser to delete cookies every time you close it, you can turn on that setting instead of doing it manually each time. This is the most common way people handle cookies — the browser cleans up after itself.
In Chrome: Go to Settings, click Privacy and security, then turn on the toggle next to "Delete cookies and site data when you quit Chrome." In Firefox: Go to Settings, click Privacy & Security, scroll to Cookies and Site Data, and select "Delete cookies and site data when Firefox is closed." In Safari: Go to Settings, click Privacy, and select "Remove all website data when quitting Safari" from the dropdown. In Edge: Go to Settings, click Privacy, search, and services, then turn on "Clear browsing data" and select "Choose what to clear every time you close the browser."
Once you turn this on, you don't have to do anything — your browser handles it automatically. The downside is that you will be logged out of websites when you close your browser, so you'll need to log back in the next time you visit.
Protect cookies from sites you use every day
If you delete all your cookies but want to stay logged in to certain websites, most browsers let you protect specific cookies. This way, you can delete tracking cookies while keeping the ones you actually need.
In Chrome: Go to Settings, click Privacy and security, then Cookies and other site data. Under "Sites that can always use cookies," click Add and type in the website address (like amazon.com or gmail.com). In Firefox: Go to Settings, click Privacy & Security, scroll to Cookies and Site Data, and click "Manage Exceptions." Type the website address and click Allow. In Safari: Go to Settings, click Privacy, click "Manage Website Data," select the websites you want to keep, and click Remove to delete only the ones you don't need. In Edge: Go to Settings, click Privacy, search, and services, then scroll to Cookies and other site data and click "Manage exceptions."
Frequently Asked Questions
Will deleting cookies delete my passwords?
No. Cookies and passwords are stored separately. Deleting cookies won't touch your saved passwords. If you want to delete passwords, that's a different setting in your browser's privacy menu.
Why do I have to log in again after deleting cookies?
Websites use cookies to remember that you logged in. When you delete the cookie, the website no longer knows who you are, so it asks you to log in again. This is normal and expected.
Is it safe to delete all my cookies at once?
Yes, it's completely safe. Deleting cookies won't damage your computer or delete your files. The only effect is that websites won't remember you until you visit them again and log back in if needed.
How often should I delete my cookies?
That depends on your preference. Some people delete them weekly, others monthly, and some let their browser do it automatically every time they close it. There's no right answer — it's up to how much tracking you want to prevent versus how often you want to log back in.
What's the difference between deleting cookies and clearing my browsing history?
Cookies are files websites store on your computer. Browsing history is a list of websites you visited. Deleting cookies removes the stored data from websites. Deleting history removes the list of sites you went to. You can delete one without deleting the other.