In Chrome and Edge, press Ctrl + Shift + Delete (Command + Shift + Delete on a Mac), choose a time range, tick “Cached images and files”, and confirm. In Safari, use History > Clear History, or empty only the cache from the Develop menu. Leave “Cookies” unticked if you want to stay signed in to websites.
Clearing cookies signs you out of most websites. Make sure you know your passwords, or have them saved in a password manager, before you clear cookies. Do not tick “Passwords” unless you truly want saved passwords deleted.
What the cache is, and when clearing it helps
Your browser keeps copies of parts of websites you visit, such as images and page files, so they open faster next time. Google describes the cache as remembering parts of pages, like images, to help them open faster. Cookies are different: small files sites use to remember you, including keeping you signed in.
Clearing the cache is a good fix when:
- A website looks broken, loads old content, or its buttons do nothing.
- A page keeps showing an error after the site has been fixed.
- You need to free some storage space on the device.
It is not a cure for a slow computer, pop-up ads or malware. For those, see a slow browser and stopping browser notifications.
Try a hard refresh first
If only one page is acting up, a hard refresh reloads it without using the cache: press Ctrl + F5 or Ctrl + Shift + R on Windows, or Command + Shift + R on a Mac in Chrome, Edge and Firefox. In Safari, turn on the Develop menu (see the Safari section below), then choose Develop > Reload Page From Origin (Option + Command + R). If that fixes it, you do not need to clear everything.
Google Chrome (Windows, Mac, Chromebook)
- Open Chrome. At the top right, select the three-dot More menu, then Delete browsing data. (Shortcut: Ctrl + Shift + Delete, or Command + Shift + Delete on Mac.)
- Choose a time range. “Last hour” is enough if a problem just started; “All time” clears everything.
- Tick Cached images and files. Tick Cookies and other site data only if you also want to be signed out.
- Select Delete data.
Google notes that after you clear cache and cookies, you may need to sign in again, and some sites can seem slower at first because content needs to load again. If Chrome sync is on, you stay signed in to the Google Account you sync with.
Microsoft Edge
- Select Settings and more (the three dots) > Settings > Privacy, search, and services.
- Under Clear browsing data, select Choose what to clear. (Shortcut: Ctrl + Shift + Delete.)
- Pick a Time range, tick Cached images and files, and untick anything you want to keep.
- Select Clear now.
Microsoft explains that cached images and files are copies of pages, images and other media stored on your device. If you sync Edge across devices, clearing synced data such as history can clear it on your other signed-in devices too; Microsoft describes turning off sync first if you only want to clear one device.
Safari on Mac
Clear history and website data together: choose History > Clear History, pick how far back from the pop-up menu, and click Clear History. Apple says this removes your browsing history and data Safari saved as a result of your browsing, such as recent searches, webpage icons and snapshots, and the list of downloads (the downloaded files stay). To remove cookies and cached website data as well, use Manage Website Data below.
Empty only the cache (keep history and cookies):
- Choose Safari > Settings > Advanced and turn on Show features for web developers. A Develop menu appears in the menu bar.
- Choose Develop > Empty Caches (Option + Command + E).
One website only: choose Safari > Settings > Privacy > Manage Website Data, select the site, and click Remove. On iPhone and iPad, go to Settings > Apps > Safari (older versions: Settings > Safari) and use Clear History and Website Data, or Advanced > Website Data for one site.
Mozilla Firefox
- Open the menu (three lines) > Settings > Privacy & Security.
- Under Cookies and Site Data, select Clear Data.
- Tick Temporary cached files and pages and untick cookies if you want to stay signed in.
- Confirm with Clear.
Firefox also opens a full “clear history” window with Ctrl + Shift + Delete (Command + Shift + Delete on Mac), where you can choose a time range.
On phones and tablets
- Chrome on Android or iPhone: tap the three-dot menu, then Delete browsing data (on some versions, History > Delete browsing data). Choose a time range, tick Cached images and files, and tap Delete data.
- Safari on iPhone or iPad: open the Settings app, go to Safari (Settings > Apps > Safari on newer versions) and tap Clear History and Website Data. To clear only one site, use Advanced > Website Data, then swipe left on the site and delete it.
- Edge on a phone: open the menu, go to Settings > Privacy and security > Clear browsing data.
Phone browsers follow the same rules as computers: cache can go without much downside, while cookies sign you out. Menu names change slightly between app versions, so look for the words “browsing data” or “website data”.
Clearing data for just one website
When a single site misbehaves, clearing only its data avoids signing you out everywhere. In Chrome, open the site, select the icon to the left of the address, choose Site settings, and select Delete data. Edge offers a similar per-site option under Settings > Cookies and site permissions. Then reload the site and sign in again.
What to expect afterward
- Pages load a little slower the first time as the browser downloads fresh copies.
- If you cleared cookies, sites ask you to sign in again and may forget preferences like language or dark mode.
- Saved passwords, bookmarks and extensions are untouched unless you ticked them.
- If a site still fails after clearing data, try a private window, then turn off extensions one at a time; an ad blocker or privacy extension is a common cause.
Before you clear cookies, make sure you can sign back in. A password manager makes this painless; see password manager basics.
Common questions
Will clearing my cache delete my passwords?
No. Clearing cached images and files does not touch saved passwords. Passwords are a separate checkbox; leave it unticked to keep them.
Will clearing the cache sign me out of websites?
Clearing only the cache usually does not. Clearing cookies and site data does sign you out of most websites.
How often should I clear my browser cache?
There is no need to do it on a schedule. Clear it when a site looks broken or shows old content, or when you need storage space.
What is the shortcut to clear cache in Chrome?
Press Ctrl + Shift + Delete on Windows or Chromebook, or Command + Shift + Delete on a Mac, to open Delete browsing data.
How do I clear the cache in Safari without losing history?
Turn on Show features for web developers in Safari > Settings > Advanced, then choose Develop > Empty Caches.
Does clearing the cache remove viruses?
No. It can remove broken page files, but it does not remove malware or unwanted extensions. Use your security software and review your extensions instead.
Sources and further help
Official and primary sources used to check this guide. Menus, prices and plan details can change; confirm current terms with the provider.
- Google Account Help: Clear cache & cookies
- Google Chrome Help: Delete browsing data in Chrome
- Microsoft Support: View and delete browser history in Microsoft Edge
- Apple Support: Clear your browsing history in Safari on Mac
- Apple Support: Change Advanced settings in Safari on Mac
- Apple Support: Manage cookies and website data in Safari on Mac
- Mozilla Support: How to clear the Firefox cache