Safari stores your browsing history, cookies, and cached files by default — clearing them takes one menu and a few clicks
Safari keeps a record of every website you visit, along with passwords you save, search terms you enter, and temporary files websites store on your device. Clearing this data is straightforward: open Safari, go to History in the menu bar, select "Clear History", choose your time range, and confirm. The whole process takes about 10 seconds.
Why you might clear your history: you share your device with others and want privacy from them, you're selling or giving away your Mac or iPhone, you want to remove a record of sites you visited, or you're troubleshooting a website that isn't loading correctly. Each reason points to a slightly different approach — clearing everything at once versus clearing only certain types of data.
Key Takeaways
- Open Safari, click History in the menu bar, select "Clear History", choose your time range (last hour, today, today and yesterday, or all time), and click Clear History to confirm.
- Clearing history removes your browsing record but not saved passwords unless you specifically delete them in Settings or Preferences.
- If you want to prevent Safari from storing history in the first place, use Private Browsing mode, which leaves no record of sites you visit during that session.
- On a shared device, clearing history only hides your activity from casual viewing — it does not prevent someone with device access from recovering deleted data or viewing your iCloud activity.
The fastest way: clearing all history at once
On Mac: open Safari, click the History menu at the top, and select "Clear History". A small window appears asking how far back you want to clear — choose "all history" if you want everything gone, or pick a shorter time range like "today" or "the last hour". Click the "Clear History" button to confirm.
On iPhone or iPad: open Settings, scroll down and tap Safari, scroll to the bottom, tap "Clear History and Website Data", and confirm. This clears everything at once — there is no option to choose a time range on iOS the way there is on Mac.
This method removes your browsing history, cookies (small files websites use to remember you), and cached data (temporary files websites store locally). It does not remove saved passwords, credit card information, or autofill data unless you specifically delete those separately.
Clearing only specific types of data
If you want to keep some information but remove other parts, Safari on Mac lets you be selective. Click Safari in the menu bar, then Preferences, then Privacy. You will see options for managing cookies and website data. Click "Manage Website Data" to see a list of every site that has stored information on your device — you can select individual sites and click "Remove" to delete only their data.
On iPhone and iPad, you cannot pick and choose individual data types through the standard clear function. Your only option is "Clear History and Website Data", which removes everything at once. If you need finer control, you can go to Settings > Safari > Advanced > Website Data and manually remove specific sites.
For passwords specifically: on Mac, go to Safari > Preferences > Passwords and search for the password you want to remove, then click the minus sign. On iPhone, go to Settings > Passwords, find the entry, swipe left, and tap Delete. Removing a saved password does not clear your browsing history — it only stops Safari from auto-filling that credential in the future.
Using Private Browsing to avoid storing history in the first place
If you want to browse without creating a history record, use Private Browsing mode instead of clearing history afterward. On Mac, click File > Open Private Browsing Window, or use the keyboard shortcut Command-Shift-N. On iPhone or iPad, tap the Tabs icon (two overlapping squares) at the bottom right, then tap "Private" at the bottom left.
In Private Browsing mode, Safari does not save your history, searches, autofill data, or cookies from that session. When you close the private window, nothing remains. However, your internet service provider and the websites you visit can still see where you are going — Private Browsing only hides your activity from other people using the same device.
Private Browsing is useful for one-off searches you do not want saved, or for browsing on a shared device without leaving a record. It is not a substitute for a VPN or other privacy tool if you are concerned about who can see your internet traffic.
What clearing history does and does not do
Clearing your Safari history removes the visible record of sites you visited from the History menu and the search bar autocomplete. It also removes cookies and cached files, which means websites will not remember you the next time you visit — you may have to log in again, and pages may load more slowly because Safari has to read them fresh.
Clearing history does not remove saved passwords, credit card numbers, or autofill information unless you delete those separately. It does not prevent someone with physical access to your device from viewing your iCloud activity or synced Safari data if you use iCloud. It does not erase data that has already left your device — if you visited a website and it logged your visit on their servers, clearing your local history does not remove that record from their side.
On a shared device, clearing history is a basic privacy step but not a complete one. Someone with your device password can still see what you did by checking iCloud activity, looking at your email, or using device recovery tools. If you need real privacy on a shared device, you should use a separate user account rather than relying on history clearing alone.
Clearing history on a device you are selling or giving away
Before you hand off your Mac or iPhone, clear your Safari history, but do not stop there. Go to Settings (or System Preferences on Mac) and sign out of iCloud — this removes your synced data from the device. Then erase the device completely: on Mac, use Erase Mac (in System Settings > General), and on iPhone, use Settings > General > Transfer or Reset > Erase All Content and Settings.
A straightforward history clear is not enough because Safari data syncs across your devices through iCloud. The new owner could potentially access your browsing history, passwords, and other synced information if they know your Apple ID. A full device erase removes everything and resets the device to factory settings, which is the only way to may support your data is gone.
Troubleshooting: when clearing history does not fix a problem
If a website is not loading correctly and you cleared your history but the problem persists, the issue is usually not cached data. Try these steps instead: quit Safari completely (Command-Q on Mac, or swipe up from the bottom on iPhone), wait a few seconds, and reopen it. If that does not work, try opening the site in a Private Browsing window — if it works there, the problem is likely a cookie or autofill conflict, and you can clear just that site's data instead of everything.
If you cleared history and a website is asking you to log in again, that is normal — clearing cookies removes your login session. You will need to enter your password again. If you do not want to re-enter passwords every time you clear history, you can clear history without clearing cookies: on Mac, go to Safari > Preferences > Privacy and uncheck "Remove all website data" before clearing history, though this option is not available on iOS.
Frequently Asked Questions
Does clearing Safari history delete my saved passwords?
No. Clearing history removes your browsing record and cookies, but passwords stay saved unless you delete them separately. If you want to remove a specific password, go to Safari Preferences > Passwords on Mac, or Settings > Passwords on iPhone, find the entry, and delete it.
Can someone recover my Safari history after I clear it?
On a device you still own, no — clearing history removes the data from Safari's normal storage. On a device you are giving away, yes, if you do not erase the device completely. A full factory reset is the only way to may support deleted data cannot be recovered.
What is the difference between clearing history and using Private Browsing?
Clearing history removes past records after you have already browsed. Private Browsing prevents Safari from storing records in the first place — nothing is saved during that session. Private Browsing is useful if you know in advance you want no record; clearing history is what you do after the fact.
Will clearing my Safari history log me out of websites?
Yes, because clearing history also clears cookies, which is how websites remember you are logged in. You will need to log in again the next time you visit. If you want to keep your login sessions, clear history without clearing cookies — on Mac, uncheck "Remove all website data" in Safari Preferences before clearing.
Does clearing history on my Mac also clear it on my iPhone?
If you use iCloud sync, clearing history on one device will eventually sync to your other devices. To prevent this, turn off iCloud sync for Safari in Settings (or System Preferences on Mac) before clearing, or sign out of iCloud entirely if you do not want any syncing.