Dinners

How to Clear Cache and Cookies on Safari

Updated · By Patriot Kitchen

Save

Clearing cache and cookies in Safari takes under a minute and is free. The method differs slightly between iPhone/iPad and Mac, but both are done in Settings or Safari’s menu. This page covers the exact steps for each device, what gets deleted, and what to do when clearing them doesn’t fix a problem.

Clear Safari Cache and Cookies on iPhone or iPad

On iOS and iPadOS, Safari’s cache and cookies are cleared together in one action. This removes saved passwords, autofill data, and browsing history as well, so export any passwords you need first (Settings > Passwords > Export Passwords).

  1. Open Settings on your iPhone or iPad.
  2. Scroll down and tap Safari.
  3. Scroll to the bottom of the Safari settings and tap Clear History and Website Data.
  4. Tap Clear History and Data in the confirmation pop-up. This removes all history, cookies, and cache from the last hour, today, or all time (the option depends on your iOS version; choose “all history” if available).

If you want to clear only cookies and keep your history, you can’t do that directly on iPhone/iPad. Instead, go to Settings > Safari > Advanced > Website Data, then tap Remove All Website Data. This clears cookies and cache but leaves your history intact. Note that this also logs you out of every website you’re signed into.

Clear Safari Cache and Cookies on Mac

On a Mac, Safari separates history from cache and cookies. You can clear everything at once or target just cookies and cache.

  1. Open Safari on your Mac.
  2. From the top menu bar, click Safari > Settings (or Safari > Preferences on older macOS versions).
  3. Click the Privacy tab.
  4. Click Manage Website Data. A list of all websites that have stored data appears.
  5. To remove everything, click Remove All. To remove only specific sites, select them and click Remove.
  6. Click Done.

To clear the browsing history as well, go to History > Clear History in the menu bar, choose a time range (last hour, today, today and yesterday, or all history), and click Clear History. This also removes cookies and cache for that period.

What Exactly Gets Deleted and What Stays

Clearing cache and cookies removes stored website data that Safari uses to load pages faster and keep you logged in. Here’s what each action affects:

Data type What it does Deleted by “Clear History and Website Data” (iOS) or “Remove All” (Mac)
Cookies Small files that remember login sessions, preferences, and tracking info Yes
Cache Stored copies of images, scripts, and page parts to speed up reloads Yes
Browsing history List of sites you visited Yes (on iOS; on Mac only if you also clear history)
Saved passwords Stored in iCloud Keychain or your Mac’s keychain No
Autofill data Names, addresses, credit card info you’ve saved No
Website data like local storage Offline data for web apps Yes

After clearing, you’ll need to log in to most websites again. Your bookmarks, reading list, and open tabs (unless you chose to close them) are not affected.

When Clearing Cache and Cookies Fixes a Problem

Clearing cache and cookies is a standard fix for several Safari issues. Use this decision list to know when to clear them and when to try something else:

  • Pages load outdated or broken (styles missing, buttons not working): Clear cache and cookies. If that fails, force-quit Safari and reopen it.
  • You’re stuck logged out of a site or can’t log in: Clear cookies for that specific site (Mac: Manage Website Data > select site > Remove; iOS: Website Data > Remove All).
  • Safari is slow or crashes often: Clear cache and cookies, then restart your device. If the problem persists, check for iOS/macOS updates.
  • You see a “Safari cannot open the page because it could not connect to the server” error: That’s a network issue, not a cache problem. Check your Wi-Fi or cellular connection first.
  • You want to stop a website from tracking you: Clear cookies, then enable Prevent Cross-Site Tracking in Safari’s Privacy settings.

How to Clear Only One Website’s Cache and Cookies

Sometimes you only need to clear data for a single site, not everything. This keeps your other logins intact.

On Mac:

  1. Go to Safari > Settings > Privacy.
  2. Click Manage Website Data.
  3. Type the site’s domain in the search box (e.g., “example.com”).
  4. Select the site and click Remove, then Done.

On iPhone/iPad:

  1. Go to Settings > Safari > Advanced > Website Data.
  2. Search for the site name.
  3. Swipe left on the site and tap Delete, or tap Edit then the red minus button.

This removes that site’s cookies and cache without affecting your history or other sites’ data.

What to Do After Clearing Cache and Cookies

After clearing, Safari will rebuild its cache as you browse. You’ll notice pages may load slightly slower the first time you visit them, but that’s normal. If you cleared everything, you’ll need to log in to your email, social media, and other accounts again.

If you cleared cache and cookies to fix a specific problem, test the site or page that was failing. If it still doesn’t work, try these in order:

  1. Restart your device (iPhone/iPad: hold the side button and volume button, then slide to power off; Mac: Apple menu > Restart).
  2. Check that your date and time are set correctly (Settings > General > Date & Time on iOS; System Settings > Date & Time on Mac). Incorrect time can cause SSL errors.
  3. Disable Safari extensions one by one (Settings > Safari > Extensions on iOS; Safari > Settings > Extensions on Mac) to see if one is interfering.
  4. Reset Safari’s website data again after a fresh restart.

If the problem persists across all browsers (try Chrome or Firefox), it’s likely not a Safari issue but a network, server, or device problem.

Preventing Cache and Cookie Buildup

You can’t stop Safari from storing cache and cookies entirely, but you can reduce how much accumulates. In Safari’s Privacy settings, enable Prevent Cross-Site Tracking to limit tracking cookies. On Mac, you can also set Safari to block all cookies (Settings > Privacy > uncheck “Allow websites to check if Apple Pay is available” is unrelated; actually, go to Settings > Privacy > Cookies and website data and choose “Block all cookies” — but this will break many sites, so use it only temporarily).

For routine maintenance, clearing cache and cookies once a month is enough for most people. If you use Safari heavily for banking or shopping, you might want to clear only specific sites’ data after each transaction to reduce tracking, but that’s optional.

Labels and menu names can differ slightly depending on your iOS or macOS version, but the paths above are standard across recent versions. If you don’t see an exact option, look for similar wording in Safari’s settings.

Related

Safe minimum internal temperatures follow USDA FSIS; raw-fish guidance follows the U.S. FDA. See our food safety notes.

Spotted an error? Tell us and we will correct it (corrections policy).