What gets stored when you browse, and where

Your computer keeps records of what you do online in several places. Your web browser stores the websites you visit in a history file, saves passwords and login information, and caches images and files from those sites so they load faster next time. Your operating system also logs activity — Windows keeps a search history, recent files list, and temporary files. Knowing what exists and where it lives is the first step to clearing it.

The reason to clear this data varies. Some people want privacy from others who use the same computer. Others want to free up storage space, since cached files can add up. Still others are troubleshooting a slow browser or website that won't load properly. The method you choose depends on what you want to remove and how thoroughly you want to remove it.

Key Takeaways

  • Browser history, cached files, and saved passwords live in your web browser settings, not in your operating system, and each browser stores them separately.
  • Clearing your browser history does not delete files you downloaded — you must delete those separately from your Downloads folder.
  • Most browsers let you clear history from a specific date range rather than all of it, which is useful if you only want to remove recent activity.
  • Clearing the cache and cookies can fix a website that loads incorrectly, but it will also log you out of most sites you visit regularly.
  • Windows and Mac both have separate tools to clear temporary files and recent activity outside your browser.

Clearing history in Chrome, Firefox, Edge, and Safari

Each browser has its own history storage, so clearing one does not affect the others. In Chrome, click the three-dot menu in the top right, select "Clear browsing data," choose your time range (Last hour, Last 24 hours, Last 7 days, Last 4 weeks, All time), check the boxes for History, Cookies and other site data, and Cached images and files, then click Clear data. In Firefox, click the menu button (three horizontal lines), go to History, and select Clear Recent History. Choose your time range and check History, Cookies, and Cache, then click Clear Now.

In Microsoft Edge, click the three-dot menu, select Settings, go to Privacy and services, and under Clear browsing data click Choose what to clear. Select your time range, check the boxes you want, and click Clear now. In Safari on Mac, click Safari in the menu bar, select Clear History, choose how far back you want to clear (the last hour, today, today and yesterday, or all history), and click Clear History. On Safari, you can also go to Preferences, Privacy tab, and click Manage Website Data to see and remove individual sites.

If you want to clear history automatically every time you close the browser, most browsers have a setting for this. In Chrome, go to Settings, Privacy and security, and turn on "Clear cookies and site data when you quit Chrome." In Firefox, go to Settings, Privacy and History, and set History to "Use custom settings for history," then check "Clear history when Firefox closes."

Removing downloaded files and temporary storage

Clearing browser history does not delete files you downloaded. Those sit in your Downloads folder until you remove them manually. On Windows, open File Explorer, click Downloads in the left sidebar, select the files you want to delete, and press Delete. On Mac, open Finder, click Downloads in the sidebar, select files, and press Command+Delete. You can also right-click and select Move to Trash.

Your operating system also stores temporary files that browsers and other programs create. On Windows 10 or 11, go to Settings, System, Storage, and click Temporary files. Check the boxes for Temporary files, Recycle Bin, and Downloads (if you want), then click Delete files. On Mac, temporary files are harder to access through the normal interface, but you can use the built-in Disk Utility to see what is taking up space. Go to Applications, Utilities, Disk Utility, select your drive, and click the Info button to see what folders are largest.

Clearing search history and recent activity on Windows and Mac

Windows keeps a record of what you search for in the Start menu and what files you have opened recently. To clear search history, go to Settings, Privacy and security, General, and scroll down to Clear your activity. Click Clear under "Clear activity history." To clear the recent files list, go to Settings, Personalization, Start, and turn off "Show recently opened items in Start, Jump Lists, and File Explorer."

On Mac, recent files are stored in the Finder's Recent folder. Click Finder, then File, and look for Open Recent. You can also go to System Settings, General, and look for options related to recent items, though Mac stores less history than Windows by default. If you want to clear the Spotlight search history (the search tool that appears when you press Command+Space), there is no direct clear button, but you can disable Spotlight indexing for specific folders in System Settings, Siri and Spotlight.

Using private or incognito browsing to prevent history from being saved

If you want to browse without creating a history record in the first place, use your browser's private mode. In Chrome, press Ctrl+Shift+N (Windows) or Command+Shift+N (Mac) to open an Incognito window. In Firefox, press Ctrl+Shift+P or Command+Shift+P to open a Private window. In Edge, press Ctrl+Shift+P or Command+Shift+P for an InPrivate window. In Safari, press Command+Shift+N for a Private window.

Private mode does not save your browsing history, cookies, or cached files once you close the window. However, it does not hide your activity from your internet service provider, your employer if you are on a work network, or the websites you visit. It only prevents your local computer from storing a record. Downloaded files still appear in your Downloads folder even in private mode.

What to do if you share a computer with other people

If multiple people use the same computer, each person should have their own user account. Each account has its own browser history, downloads folder, and settings. To create a new account on Windows, go to Settings, Accounts, Other people, and click Add account. On Mac, go to System Settings, General, Users and Groups, click the lock to unlock it, click the plus button, and create a new account.

If you do not have separate accounts, clearing your history will only clear it from the browser you are using. Other browsers and other user accounts will still have their own records. The most effective way to keep activity private on a shared computer is to use private browsing mode every time, or to ask the computer owner to set up separate accounts for each person.

Clearing history on mobile devices

Mobile browsers work the same way as desktop browsers. On iPhone or iPad, open Safari, tap the book icon at the bottom, tap History, tap Clear History and Website Data, choose your time range, and tap Clear History. On Android, open Chrome, tap the three-dot menu, go to Settings, Privacy, and tap Clear browsing data. Choose your time range and what to clear, then tap Clear data.

Mobile devices also store app data and cache. On iPhone, go to Settings, General, iPhone Storage, find an app, and tap Offload App to remove it without deleting your data, or tap Delete App to remove it completely. On Android, go to Settings, Apps, select an app, tap Storage, and tap Clear Cache or Clear Storage depending on what you want to remove.

Frequently Asked Questions

Does clearing my browser history delete files I downloaded?

No. Clearing history only removes the record of websites you visited. Downloaded files stay in your Downloads folder until you delete them manually. You must go to your Downloads folder and delete files separately if you want them gone.

Will clearing my history log me out of websites?

Yes, if you clear cookies along with history. Cookies are what websites use to keep you logged in. If you clear only history without clearing cookies, you will stay logged in. Most people clear both at once, which logs you out of most sites.

Can I clear history from only the last few hours instead of everything?

Yes. All major browsers let you choose a time range when you clear history — usually Last hour, Last 24 hours, Last 7 days, Last 4 weeks, or All time. This is useful if you only want to remove recent activity and keep older history.

Does private browsing mode hide my activity from my internet provider?

No. Private mode only stops your computer from saving a history file. Your internet service provider, your employer on a work network, and the websites you visit can still see what you are doing. Private mode is for privacy from other people who use the same computer, not from your network.

What is the difference between clearing history and clearing cache?

History is the list of websites you visited. Cache is the images, scripts, and files those websites stored on your computer to load faster next time. Clearing history removes the list; clearing cache frees up storage space and can fix a website that loads incorrectly, but you will have to wait longer for sites to load the first time you visit them again.