What you can clear in Safari, and what each option does
Safari stores several types of data as you browse: your browsing history (the list of sites you visited), cookies (small files that remember your login and preferences), cached files (images and code downloaded to load pages faster), and autofill information (saved passwords, addresses, and payment methods). You can clear all of these at once, or pick and choose which types to remove.
The fastest way is to clear everything from the last hour, day, week, or all time. But if you want to keep some data — like staying logged into your email — you can clear only history, or only cookies, or only cache. Safari also lets you remove data from specific websites rather than your entire browsing record.
On Mac, iPhone, and iPad, the steps are slightly different but the options are the same. The process takes less than a minute once you know where to look.
Key Takeaways
- On Mac, go to History menu, then "Clear History", and choose your time range and data types before clicking Clear.
- On iPhone or iPad, open Settings, tap Safari, scroll to "Clear History and Website Data", and confirm your choice.
- You can clear only cookies and cache while keeping your browsing history, or clear history while keeping login information.
- Clearing data does not sign you out of websites, but clearing cookies and cache may require you to log back in on some sites.
- Safari's private browsing mode (called Private) does not store history, cookies, or cache at all while you use it.
Clearing everything on Mac
Open Safari and click the History menu at the top of the screen. Near the bottom of the menu, you will see Clear History. Click it.
A window will appear with a dropdown menu that says "the last hour" by default. Click the dropdown to choose the last hour, today, today and yesterday, all history, or a custom date range. Below that, you will see checkboxes for the types of data to clear: Cookies and website data, Cached images and files, and History. All three are checked by default.
If you want to clear everything, leave all three boxes checked and click Clear History. If you want to keep some data — for example, to stay logged into websites — uncheck the boxes for the data you want to keep, then click Clear History.
Clearing everything on iPhone or iPad
Open the Settings app and scroll down to find Safari. Tap it. Scroll down to the bottom of the Safari settings page. You will see Clear History and Website Data in red text.
Tap Clear History and Website Data. A popup will ask you to confirm. Tap Clear to remove your browsing history, cookies, cached files, and autofill data all at once. Unlike Mac, the iPhone and iPad version does not let you choose a time range or pick which types of data to clear — it always clears everything.
If you want more control over what gets cleared on iPad, you can use Mac instead, or use Safari's private browsing mode going forward to avoid storing data in the first place.
Clearing data from a single website
On Mac, open Safari and click History at the top, then Show History. A sidebar will open on the left showing your browsing history organized by date. Find the website you want to remove data for, right-click it, and select Delete. This removes that site from your history and clears its cookies and cached files.
On iPhone or iPad, there is no built-in way to clear data from a single website without clearing everything. Your only option is to clear all data, or to use private browsing mode for sites you do not want stored.
Clearing only cookies and cache while keeping history
On Mac, open Safari and click History, then Clear History. In the window that appears, uncheck the box next to History and leave Cookies and website data and Cached images and files checked. Click Clear History. Your browsing history will remain, but cookies and cache will be removed.
This is useful if you want to remove tracking cookies and free up storage space without losing the record of where you have been. Clearing cookies may log you out of some websites, but clearing cache alone usually does not.
On iPhone and iPad, you cannot choose which types of data to clear — the Clear History and Website Data button removes everything at once.
Using private browsing to avoid storing data
If you want Safari to stop storing your browsing history, cookies, and cached files from the start, use Private browsing mode. On Mac, click File at the top, then New Private Window. On iPhone or iPad, tap the Tabs button at the bottom right (it looks like two overlapping squares), then tap Private at the bottom left, then tap + to open a new private tab.
While you are in private mode, Safari will not save your history, cookies, or cached files. When you close the private window or tab, nothing is stored. You can still log into websites and use autofill in private mode — Safari just does not remember where you went after you close the window.
Private mode is useful for browsing on a shared computer, or when you want to search for something without it appearing in your history. It does not hide your activity from your internet service provider or the websites you visit — it only hides it from other people who use the same device.
What happens after you clear data
Clearing your history removes the list of sites from the History menu and the address bar dropdown. Clearing cookies and cache may log you out of websites, because cookies store your login session. The next time you visit a site that required a login, you will need to enter your username and password again.
Clearing cache frees up storage space on your device, but it also means websites will load slightly slower the first time you visit them after clearing, because Safari has to download images and code again instead of using the stored copies.
Clearing autofill data removes saved passwords, addresses, and payment methods from Safari's memory. If you have saved a password in Safari's password manager, clearing autofill will not remove it — passwords are stored separately and require your device password or Face ID to access.
Frequently Asked Questions
Does clearing Safari data sign me out of websites?
Clearing history alone does not sign you out. Clearing cookies will sign you out of most websites because cookies store your login session. Clearing cache does not usually sign you out. If you want to stay logged in, uncheck the "Cookies and website data" box before clearing.
Will clearing Safari data delete my saved passwords?
No. Passwords saved in Safari's password manager are stored separately from browsing data and autofill information. Clearing history, cookies, and cache will not remove them. To delete a saved password, go to Settings > Passwords (on iPhone/iPad) or Safari > Preferences > Passwords (on Mac), find the password, and delete it manually.
Can I clear data from only certain websites without clearing everything?
On Mac, yes — right-click a website in your History and select Delete. On iPhone and iPad, no — the Clear History and Website Data button removes all data at once. If you need more control, use private browsing mode for sites you do not want stored.
Does clearing Safari data make my internet faster?
Clearing cache frees up storage space, which can help if your device is running low on storage. It does not make your internet connection faster, but it may make Safari load slightly slower at first because it has to re-download images and code instead of using cached copies.
What is the difference between clearing history and clearing cookies?
History is the list of websites you visited, shown in the History menu. Cookies are small files websites store on your device to remember you, your login, and your preferences. Clearing history removes the list but keeps cookies, so websites may still recognize you. Clearing cookies removes the stored data but keeps the list of sites you visited.