Where your iPhone stores browsing history and what clearing it does
Your iPhone keeps three separate records: Safari browsing history (websites you visited), Safari cookies and site data (login information and preferences), and app cache (temporary files apps store locally). Clearing history removes the list of websites you visited, but does not delete your passwords unless you specifically clear cookies. App data like photos, messages, or documents inside individual apps stays on your phone unless you delete the app itself or clear that app's cache separately.
The most common reason to clear history is privacy — so someone using your phone cannot see where you have been online. Clearing cookies and site data can also solve problems where websites load incorrectly or you get stuck on a login screen. If you are selling or giving away your phone, clearing history alone is not enough; you need to erase the entire device through Settings > General > Transfer or Reset > Erase All Content and Settings.
Key Takeaways
- Safari history clears in one step through Settings > Safari > Clear History and Website Data, and you choose whether to clear the last hour, day, week, or all time.
- Clearing history removes visited websites but keeps passwords unless you also check the box for cookies and site data.
- Individual apps like Chrome, Firefox, or Gmail have their own history-clearing steps inside the app itself, separate from Safari.
- If you want privacy from someone else using your phone, also turn on Face ID or passcode lock in Settings > Face ID & Passcode.
Clear Safari history through Settings
Open Settings on your home screen. Scroll down and tap Safari (it is in the list of apps, not at the very top). Scroll to the bottom of the Safari settings page and tap Clear History and Website Data.
A popup menu appears with four time options: the last hour, today, today and yesterday, or all time. Choose the timeframe you want to clear. If you want to remove everything, tap All Time. Tap Clear History and Website Data again to confirm. The process takes a few seconds.
This step clears your browsing history and cookies by default. If you want to keep cookies (so you stay logged into websites) but still remove history, you cannot do that through this menu — you would need to manually log out of sites or use a different browser. Most people clear both together, since cookies are what let websites track you.
Clear history in Chrome, Firefox, or other browsers
If you use Chrome, Firefox, Edge, or another browser instead of Safari, each one has its own history storage and its own clearing method. Safari settings do not touch these browsers.
In Chrome: Open the app, tap the three horizontal lines (menu) at the bottom right, tap History, then tap Clear Browsing Data. Choose your timeframe and tap Clear Browsing Data again. In Firefox: Open the app, tap the menu icon (three horizontal lines) at the bottom right, tap Settings, tap Data Management, then tap Clear Private Data. In Edge: Open the app, tap the three dots at the bottom right, tap History, tap Clear Browsing Data, choose your timeframe, and tap Clear.
Each browser stores history separately, so clearing Safari does not clear Chrome, and clearing Chrome does not clear Firefox. If you use multiple browsers, you need to repeat this step in each one.
Clear cache and temporary files from individual apps
Apps like Gmail, Maps, YouTube, and social media apps store temporary files (cache) on your phone to load faster next time. Clearing an app's cache frees up storage space and can fix problems where the app loads old information or crashes. You cannot clear cache through Settings for most apps — you have to go into the app itself.
In Gmail: Open the app, tap your profile picture at the top right, tap Manage Your Google Account, tap Storage, then tap Manage Storage and delete old emails or attachments. In Maps: Open the app, tap your profile picture at the top right, tap Settings, tap About, Maps, and Privacy, then tap Clear Cache (if available — not all versions show this). In YouTube: Open the app, tap your profile picture, tap Settings, tap General, then toggle off Search History and Watch History.
For most other apps, the fastest way to clear cache is to delete and reinstall the app. Go to Settings > General > iPhone Storage, find the app, tap it, tap Offload App (which removes the app but keeps your data), wait a few seconds, then tap Reinstall App. This clears temporary files without deleting your saved data inside the app.
Turn on passcode or Face ID to prevent others from seeing your history
Clearing history only works if you are the only person with access to your phone. If someone else uses your device, they can open Safari and see your history again after you clear it. To prevent that, lock your phone with a passcode or Face ID.
Go to Settings > Face ID & Passcode (or Touch ID & Passcode on older iPhones). Tap Turn On Face ID or Turn On Passcode. Follow the prompts to set up your lock method. Once enabled, your phone locks after a few minutes of inactivity, and anyone trying to open Safari or Settings needs your passcode or face to unlock it.
You can also turn on a separate lock just for Safari. Go to Settings > Apps > Safari, scroll down, and toggle on Require Face ID or Require Passcode. This way, Safari stays locked even if someone unlocks your phone with your passcode.
What clearing history does not remove
Clearing Safari history does not delete photos, messages, emails, or documents stored on your phone. It does not remove passwords saved in iCloud Keychain (you would need to go to Settings > [Your Name] > iCloud > Keychain to manage those). It does not delete search history in Spotlight (the search function on your home screen) — to clear that, go to Settings > Siri & Search and toggle off Search History for individual apps.
If you are concerned about privacy, also check Settings > Privacy to see which apps have permission to access your location, camera, microphone, photos, and contacts. You can revoke permissions for any app that does not need them.
Frequently Asked Questions
Does clearing history delete my passwords?
No. Clearing Safari history removes the list of websites you visited but keeps passwords stored in iCloud Keychain. If you want to delete a specific password, go to Settings > [Your Name] > iCloud > Keychain > Saved Passwords, find the password, and swipe left to delete it.
Can someone recover my history after I clear it?
Not through normal means. Once you clear history through Settings, it is gone from Safari. However, if your phone is backed up to iCloud, that backup may contain old history. To prevent that, go to Settings > [Your Name] > iCloud > Manage Storage, tap Backups, select your device, and turn off Safari if you do not want it backed up.
Why does my Safari history keep coming back?
If you have iCloud Keychain or iCloud sync turned on, Safari history syncs across your devices. Clearing history on your iPhone may reappear if you open Safari on a Mac or iPad that still has that history. To stop syncing, go to Settings > [Your Name] > iCloud and toggle off Safari.
How do I clear history automatically every time I close Safari?
Go to Settings > Safari, scroll to the Privacy section, and tap Close Tabs. Choose On Exit. This closes all open tabs and clears history when you swipe Safari away from your app switcher. Note that this does not clear cookies or saved passwords, only the history list.
Does clearing my iPhone's history affect my Google account or email?
No. Clearing Safari history only removes the local record on your phone. Your Google account, Gmail, and any websites you use still have their own records of your activity. To manage what Google knows about you, visit myactivity.google.com on any device and delete activity there.