How to Clear Cache, History and Cookies in Safari, Chrome and Firefox on a Mac
Quick answer: In Chrome, Firefox and Edge, press ⇧⌘Delete, choose a time range, and clear cached files. In Safari, turn on the Develop menu, then choose Develop ▸ Empty Caches (⌥⌘E); clear history and cookies from History and Settings ▸ Privacy. Clearing cookies signs you out of websites.
Clearing a browser cache fixes pages that show old content and can free a little space. For app and system caches see How to Clear Cache on a Mac (App, Browser and DNS Cache).
Steps by browser
| Browser | Shortcut or menu | What to choose |
|---|---|---|
| Safari | Develop ▸ Empty Caches (⌥⌘E) | Enable the Develop menu first |
| Safari history and cookies | History ▸ Clear History; Settings ▸ Privacy | Manage Website Data for one site |
| Chrome | ⇧⌘Delete | Clear browsing data, choose the time range |
| Firefox | ⇧⌘Delete | Clear Recent History |
| Edge | ⇧⌘Delete | Clear browsing data |
Safari in detail
Choose Safari ▸ Settings ▸ Advanced and tick Show features for web developers.
Choose Develop ▸ Empty Caches, or press ⌥⌘E.
To clear history, choose History ▸ Clear History and pick a time range.
To clear cookies for one site, open Settings ▸ Privacy ▸ Manage Website Data, select the site and click Remove.
Chrome, Edge and Firefox
Press ⇧⌘Delete, choose the time range, tick the items to clear (cached images and files, cookies, history), and confirm. In Firefox the dialog is called Clear Recent History.
What each option removes
Cache deletes saved copies of pages, images and scripts. Sites reload them next visit.
Cookies remove logins and preferences for sites.
History removes the list of visited pages.
Saved passwords are stored separately and are kept unless you tick them.
What Safari's Clear History actually removes
Apple says that when you clear history, Safari removes data it saves as a result of your browsing: the list of visited pages and the back and forward list, frequently visited sites, recent searches, webpage icons and snapshots, the list of downloads (the downloaded files themselves stay), and sites that asked for your location or to send notifications. You choose how far back to clear.
Cookies and website data are handled separately. In Safari, Settings, Privacy, Manage Website Data you can select one or more sites and click Remove, or click Remove All. Apple warns that removing this data can sign you out of websites or change how they behave.
If iCloud is set up for Safari, clearing your history on one Mac removes it from your other signed-in devices too.
Clear one site instead of everything
Clearing everything is rarely necessary. If one site is misbehaving, a login loop or a stale page, remove only that site's data. In Safari, use Manage Website Data and remove that one entry. In Chrome and Firefox, open the site settings from the address bar, or the cookies and site data list in the browser settings, and delete just that site.
When to clear, and when not to
Clear the cache when a page shows old content, broken layout or missing images.
Clear one site's cookies when you are stuck in a login loop or a site shows the wrong account.
Avoid clearing all cookies routinely. You will be signed out of every site and lose remembered settings.
Use a private window when you want a session that leaves no history behind. Safari does not keep the history of a private window.
If a site still shows old content
Flush the DNS cache. See How to Flush the DNS Cache on a Mac (and When You Need To).
FAQs
How do I clear the cache in Safari on a Mac?
Enable the Develop menu, then choose Develop ▸ Empty Caches.
Does clearing cookies delete passwords?
No, but it signs you out of sites.
How do I clear cookies for one site?
Use Manage Website Data in Safari, or the site settings in Chrome or Firefox.
Does clearing history in Safari remove cookies?
Safari's Clear History removes browsing history data such as the visited-pages list, frequently visited sites and recent searches. Cookies and website data are managed separately in Manage Website Data.
Will clearing my history on the Mac clear it on my iPhone?
If iCloud is set up for Safari on both devices, yes. Apple says the history is removed from all of them.
