Safari stores your browsing history, cookies, and cached files automatically — clearing them removes the record of sites you visited and the data websites saved about you

When you clear Safari history, you delete the list of websites you visited, the passwords Safari stored, the cookies that track you across sites, and the temporary files your browser cached to load pages faster. The process takes under a minute and works the same way on Mac, iPhone, and iPad, though the menu locations differ slightly.

You can clear everything at once or pick a specific time range — last hour, last day, last week, or all time. You can also choose what types of data to remove: history alone, or history plus cookies and cached data. Most people want to clear all three together.

Key Takeaways

  • On Mac, open Safari, click Safari in the menu bar, select Clear History, and choose your time range — this removes your browsing list but not cookies or cached files by default.
  • To remove cookies and cached data on Mac, go to Safari > Settings > Privacy, click Manage Website Data, select All Sites, and click Remove.
  • On iPhone or iPad, go to Settings > Safari > Clear History and Website Data and choose your time range — this clears history, cookies, and cache all at once.
  • Clearing history does not sign you out of websites, but it removes the record that you visited them and deletes temporary files websites stored on your device.
  • If you want Safari to stop saving history entirely, turn on Private Browsing, which leaves no record of sites you visit during that session.

Clearing history on Mac

Open Safari and click the Safari menu in the top menu bar. A dropdown will appear. Click Clear History. A window will pop up asking how far back you want to clear — choose Last Hour, Last Day, Last Week, or All History. Click Clear History.

This removes the list of websites you visited from Safari's history menu, but it does not remove cookies (small files websites use to remember you) or cached data (temporary files Safari stored to load pages faster). If you want to remove those as well, follow the next section.

Removing cookies and cached files on Mac

Open Safari and click Safari in the menu bar. Click Settings (or Preferences on older versions). Click the Privacy tab. You will see a button that says Manage Website Data — click it.

A list of websites will appear. Click All Sites at the bottom left to select every website at once. Then click the Remove button on the right. A confirmation will appear — click Remove again. This deletes all cookies and cached data from every website you have visited.

If you want to remove data from only certain websites, you can search for them by name in the search box instead of clicking All Sites, then click Remove for just those sites.

Clearing history on iPhone and iPad

Go to Settings on your home screen. Scroll down and tap Safari. Scroll down to the bottom and tap Clear History and Website Data. A menu will appear asking how far back to clear — choose Last Hour, Last Day, Last Week, or All Time.

Tap Clear History and Website Data to confirm. This removes your browsing history, cookies, and cached files all at once. Unlike the Mac version, you cannot choose to clear only history or only cookies — the iPhone and iPad version clears all three together.

What gets deleted and what stays

Clearing history removes the list of websites you visited, which stops them from appearing in your history menu or search suggestions. It also removes cookies, which are small files websites use to remember your login, your preferences, and your activity across sites. Cached data — temporary files Safari downloaded to load pages faster — is deleted as well.

Clearing history does not sign you out of websites. You will still be logged into your email, social media, and other accounts. It also does not remove bookmarks, reading list items, or passwords you saved in Safari's password manager. If you want to delete a saved password, you have to do that separately through Safari Settings > Passwords.

Clearing history also does not affect your internet service provider's records or your employer's network logs — those are kept on servers outside your device. If you want to hide your browsing from your ISP or network, you would need to use a VPN, which is a different tool.

Using Private Browsing to avoid saving history

If you want Safari to stop saving your browsing history from the start, use Private Browsing. On Mac, click File in the menu bar and select New Private Window. On iPhone or iPad, tap the Tabs button (the overlapping squares icon) at the bottom right, then tap Private at the bottom left, then tap the plus sign to open a new private tab.

When you browse in a private window or tab, Safari does not save your history, cookies, or cached data. When you close the private window or tab, everything is deleted automatically. This is useful if you are using a shared device or if you want to browse without leaving a record, but it does not hide your activity from your internet service provider or network administrator.

Clearing Safari data on a Mac you are selling or giving away

If you are removing your personal data before handing off a Mac, clearing Safari history is only part of the job. You should also reset Safari completely by going to Safari > Settings > Advanced and checking the box that says Show Develop Menu, then going to Develop > Empty Caches. You should also erase your Mac's entire drive and reinstall the operating system, which removes all data including files outside Safari.

For a complete wipe, use Mac's built-in Erase function: go to System Settings > General > Transfer or Reset > Erase All Content and Settings. This removes everything on the device and prepares it for the next user. Clearing Safari history alone is not enough to protect your privacy on a device you are giving to someone else.

Frequently Asked Questions

Does clearing history sign me out of websites?

No. Clearing history removes the record that you visited a site, but it does not delete your login session. You will still be logged into email, social media, banking, and other accounts. If you want to log out, you have to do that manually on each website.

Will clearing history delete my saved passwords?

No. Clearing history does not touch passwords stored in Safari's password manager. If you want to delete a saved password, go to Safari Settings > Passwords, find the password, and swipe left (on iPhone) or click the minus sign (on Mac) to remove it.

Can I clear history for only one website?

On Mac, you can remove cookies and cached data for specific websites through Safari > Settings > Privacy > Manage Website Data, then search for the site and click Remove. On iPhone and iPad, you cannot clear history for individual sites — you can only clear all history at once or use Private Browsing going forward.

What is the difference between clearing history and using Private Browsing?

Clearing history removes data you have already saved. Private Browsing prevents Safari from saving anything in the first place. When you close a private window, everything is deleted automatically. Use clearing history to remove old data; use Private Browsing to avoid saving new data.

Does clearing Safari history hide my activity from my internet provider?

No. Your internet service provider can see which websites you visit regardless of whether you clear Safari history, because that information travels through their network. Clearing history only removes the record from your device. To hide your activity from your ISP, you would need to use a VPN service.