Where your computer stores browsing history and why you might want to clear it
Your web browser keeps a record of every site you visit, every search you make, and every file you read. It also stores small files called cookies and cached data — copies of images, scripts, and page layouts — so websites load faster the next time you visit. This history lives on your hard drive, not in the cloud, and anyone with access to your computer can see it.
Clearing this history removes the record from your browser's files. It does not erase your activity from your internet service provider's logs or from the websites themselves — those organizations keep their own records. But it does remove the trail from your machine, which is useful if you share a computer, plan to sell it, or straightforward want a fresh start.
Key Takeaways
- Most browsers store history, cookies, and cached files in a single location, and you can delete all three at once through the browser's settings menu.
- On Windows, the keyboard shortcut Ctrl+H opens history in Chrome, Edge, and Firefox; on Mac, Command+Y does the same in Chrome and Edge, and Command+Comma+Y in Firefox.
- Clearing history from your browser does not remove your activity from your internet service provider or from the websites you visited.
- You can set most browsers to delete history automatically every time you close them, so you do not have to do it manually.
- If you want to keep some history but delete other parts, most browsers let you choose a date range or delete only certain sites.
How to clear history in Chrome on Windows and Mac
Open Chrome and press Ctrl+H on Windows or Command+Y on Mac. On the left side of the window, click Clear browsing data. A box will appear with three dropdown menus: one for the time range, one for what to delete, and one showing what is selected.
For the time range, choose All time to delete everything, or pick a specific period like Last hour, Last 24 hours, Last 7 days, Last 4 weeks, or Last 3 months. Under Basic settings, the boxes for Cookies and other site data and Cached images and files are already checked. Leave them checked. Then click Clear data.
If you want to delete history from only one or two sites instead of everything, go back to the History page (Ctrl+H or Command+Y), find the site in the list, right-click it, and select Delete. You can also click the three dots next to a site and choose Remove.
How to clear history in Firefox on Windows and Mac
Press Ctrl+H on Windows or Command+Comma+Y on Mac to open the History sidebar. At the top, click Clear Recent History. A window will open with a dropdown for the time range — select Everything to delete all history, or choose a specific period.
Below the time range dropdown, you will see checkboxes for what to delete. Make sure Browsing & read History, Cookies, and Cache are all checked. Then click Clear Now. Firefox will remove those files when ready.
To delete history from a single site, open the History sidebar again, find the site, right-click it, and select Forget About This Site. Firefox will remove all history, cookies, and cached data for that domain.
How to clear history in Microsoft Edge on Windows and Mac
Press Ctrl+H on Windows or Command+Y on Mac. On the left side, click Clear browsing data. A panel will slide in from the right with a time range dropdown at the top. Choose All time or a specific period.
Below that, make sure the boxes for Browsing history, read history, Cookies and other site data, and Cached images and files are checked. Then click Clear now. Edge will delete those files right away.
Setting your browser to delete history automatically
If you want your browser to clear history every time you close it, you can turn on this setting in most browsers. In Chrome, click the three-line menu in the top right, go to Settings, then Privacy and security, then Clear browsing data. Check the box that says Clear cookies and site data when you quit Chrome.
In Firefox, click the three-line menu, go to Settings, then Privacy & Security. Scroll down to History and change the dropdown from Remember history to Never remember history. This puts Firefox in private browsing mode by default.
In Edge, click the three-dot menu, go to Settings, then Privacy, search, and services. Scroll down to Clear browsing data and turn on Choose what to clear every time you close the browser. Edge will then ask you what to delete each time you shut it down.
What gets deleted and what does not
Clearing your browser history removes the list of sites you visited, your search queries, and cached files from your hard drive. It also removes cookies, which are small text files that websites use to remember your login information and preferences. However, clearing history does not sign you out of websites — you will still be logged in until the site's own session expires or you manually log out.
Clearing history does not erase your activity from your internet service provider, your employer's network (if you were on one), or the websites themselves. Those organizations keep their own logs. It also does not remove files you downloaded and saved to a folder — it only removes the record that you downloaded them. If you want to delete downloaded files, you have to find them in your Downloads folder and delete them separately.
Clearing history on a shared or borrowed computer
If you use a computer that other people also use, clearing your history is a good practice before you hand it back. Open your browser, clear all history using the steps above, and set the time range to All time. This removes the record of where you went and what you searched for.
If the computer has multiple user accounts, clearing history in one account does not affect the other accounts. Each person's browser history is stored separately. If you are concerned about privacy on a shared machine, you can also use your browser's private or incognito mode, which does not save history at all — though it still does not hide your activity from your internet service provider or network administrator.
Frequently Asked Questions
Does clearing history delete my saved passwords?
No. Clearing browsing history, cookies, and cached files does not remove saved passwords. If you want to delete a saved password, you have to do that separately in your browser's password manager. In Chrome, go to Settings > Autofill > Password manager. In Firefox, go to Settings > Privacy & Security > Passwords. In Edge, go to Settings > Passwords.
Will clearing history speed up my computer?
Clearing cached files and cookies may free up a small amount of disk space, but it will not noticeably speed up your computer unless your hard drive is almost full. Browsers are designed to manage their own cache and delete old files automatically. The main reason to clear history is privacy, not performance.
Can I recover history after I delete it?
Once you clear history through your browser, it is gone from your browser's files. You cannot recover it through the browser itself. However, if your computer has file recovery software or if you use cloud backup, a technician might be able to recover deleted files from your hard drive — but this is difficult and not may provide to work.
What is the difference between clearing history and using private browsing?
Private or incognito mode prevents your browser from saving history in the first place — when you close the window, nothing is stored. Clearing history removes files that were already saved. Private mode is useful if you want to browse without leaving a record; clearing history is useful if you have already browsed and want to clean up afterward.
Does clearing history on my phone work the same way?
The steps are similar but slightly different on phones. On iPhone Safari, go to Settings > Safari > Clear History and Website Data. On Android Chrome, tap the three-dot menu > History > Clear browsing data. The options for what to delete are the same as on desktop.