Where your browser stores history and why you might want to clear it
Your Mac browser keeps a record of every website you visit, every search you type, and every file you read. Safari, Chrome, Firefox, and Edge all store this data locally on your computer in a folder that syncs across your devices if you use iCloud or a Google account. Clearing this history removes the record from your browser's menu and search bar, though it does not erase the data from your internet service provider's logs or from websites themselves.
Most people clear history to keep their browsing private from other people who use the same Mac, to free up a small amount of storage space, or to remove autocomplete suggestions they no longer want to see. If you share your computer with family members or colleagues, clearing history is the simplest way to prevent them from seeing where you have been online.
Key Takeaways
- Safari, Chrome, Firefox, and Edge all let you clear history from the last hour, day, week, or all time — choose the timeframe that matches what you want to remove.
- Clearing history also removes cookies and cached files by default in most browsers, which can log you out of websites and slow down your next visit to them.
- You can set your browser to clear history automatically every time you close it, which removes the need to do it manually.
- Clearing history on your Mac does not clear it from other devices if you use iCloud or Google sync — you must clear it on each device separately.
How to clear history in Safari
Open Safari and click History in the menu bar at the top of the screen. A dropdown menu appears. Click Clear History at the bottom of that menu. A window pops up asking how far back you want to clear — choose the last hour, today, today and yesterday, or all history. Click the dropdown to pick your timeframe, then click Clear History again to confirm.
By default, Safari also clears cookies and website data when you use this method. If you want to clear only history and keep cookies (so you stay logged into websites), you can instead go to Safari > Settings > Privacy, click Manage Website Data, select the websites you want to remove, and click Remove. This gives you more control over what gets deleted.
How to clear history in Chrome
Open Chrome and press Command + Shift + Delete on your keyboard. This opens the Clear Browsing Data window directly. At the top, choose your timeframe from the dropdown menu — Last hour, Last 24 hours, Last 7 days, Last 4 weeks, or All time. Check the boxes next to what you want to remove: Cookies and other site data, Cached images and files, and Browsing history are checked by default.
If you do not want to clear cookies (which keeps you logged into sites), uncheck that box before clicking Clear data. You can also reach this window by clicking the three-dot menu in the top right, selecting Settings, clicking Privacy and security, then Clear browsing data.
How to clear history in Firefox
Open Firefox and press Command + Shift + Delete. The History window opens. Click Clear Recent History in the top right. A dialog box appears asking what timeframe to clear — choose Last Hour, Last 2 Hours, Last 4 Hours, Today, or Everything. Below that, make sure Browsing & read History is checked, then click Clear Now.
Firefox also clears cookies and cached data by default when you use this method. You can uncheck those boxes if you want to keep them. Alternatively, go to Firefox > Settings > Privacy & Security, scroll to Cookies and Site Data, and click Clear Data to remove only cookies without touching history.
How to clear history in Edge
Open Microsoft Edge and press Command + Shift + Delete. The Clear Browsing Data window opens on the right side of the screen. At the top, choose your timeframe — Last hour, Last 24 hours, Last 7 days, Last 4 weeks, or All time. Check the boxes for what you want to clear: Browsing history, read history, Cookies and other site data, and Cached images and files are all checked by default.
Uncheck any category you want to keep, then click Clear now. You can also reach this menu by clicking the three-dot menu in the top right, selecting Settings, clicking Privacy, search, and services, then Clear browsing data.
Setting your browser to clear history automatically
If you want your browser to clear history every time you close it, you can turn on this setting instead of clearing manually. In Safari, go to Settings > General and look for the dropdown that says Remove history items. Change it from Manually to after one day, after one week, after two weeks, or after one month. Safari will then delete history older than your chosen timeframe automatically.
In Chrome, go to Settings > Privacy and security > Clear cookies and site data when you quit Chrome and toggle it on. In Firefox, go to Settings > Privacy & Security, scroll to History, and change the dropdown from Remember history to Never remember history. In Edge, go to Settings > Privacy, search, and services and toggle on Clear browsing data. Each browser will then clear your history, cookies, and cache when you close it completely.
What happens when you clear history and what does not get cleared
Clearing history removes the list of websites from your browser's history menu and autocomplete suggestions. It also removes cookies and cached files by default, which means you will be logged out of most websites and your next visit to those sites may load slightly slower. Passwords stored in your browser are not deleted unless you specifically clear them in your browser's password settings.
Clearing history on your Mac does not affect history on your iPhone, iPad, or other devices, even if you use iCloud sync. You must clear history on each device separately. It also does not erase the record from your internet service provider, your employer's network (if you used a work network), or the websites themselves — those organizations keep their own logs that you cannot delete.
Frequently Asked Questions
Does clearing history delete my saved passwords?
No. Clearing history removes browsing records, cookies, and cached files, but not passwords. Your saved passwords stay in your browser's password manager. If you want to delete a specific password, go to your browser's settings, find the password manager or saved passwords section, and remove it individually.
Will clearing history speed up my Mac?
Clearing history frees up a very small amount of storage space, but it will not noticeably speed up your Mac. The main reason to clear history is privacy, not performance. If your Mac is running slowly, the problem is usually something else — too many browser tabs open, too many background apps, or a full hard drive.
Can I clear history from a specific website only?
Yes. In Safari, go to History > Show History, find the website in the list, right-click it, and click Delete. In Chrome, Firefox, and Edge, you can click the X next to a website in your history to remove just that entry. This is faster than clearing all history if you only want to hide one or two visits.
If I clear history on my Mac, will it clear on my iPhone too?
Only if you manually clear it on your iPhone as well. iCloud sync does not automatically clear history across devices — you must clear it on each device separately. Go to Settings on your iPhone, tap the browser name, and look for a clear history option.
What is the difference between clearing history and private browsing?
Private browsing (Safari's Private Browsing, Chrome's Incognito, Firefox's Private Window) prevents your browser from saving history in the first place while you are in that mode. Clearing history removes records after the fact. Private browsing is better if you want to browse without leaving a record; clearing history is better if you have already browsed normally and want to remove the record later.