Clear your Safari history in three steps
Open Safari and press Command + Y on Mac or tap the clock icon on iPhone and iPad. Select Clear History at the bottom of the window. Choose how far back you want to erase — the last hour, today, today and yesterday, or all time — then tap or click Clear History again to confirm.
Safari will remove the websites you visited during that period from your browsing history. This does not delete the actual websites from the internet or prevent them from knowing you visited; it only removes the record from your device.
If you want to delete history automatically every time you close Safari, you can turn on that setting in Safari preferences. On Mac, go to Safari > Settings > Privacy and check Remove history items, then choose your timeframe. On iPhone and iPad, go to Settings > Safari > Clear History and Website Data and toggle it on.
Key Takeaways
- Press Command + Y on Mac or tap the clock icon on iPhone and iPad to open your history, then select Clear History and choose your timeframe.
- Clearing history removes the record of websites you visited from your device, but does not prevent those websites from knowing you visited them.
- You can set Safari to automatically clear history every time you close the browser by enabling it in Safari settings.
- Clearing history is different from clearing cookies and cached data, which you can do separately in the same settings menu.
What gets deleted when you clear history
Safari stores three separate types of data: your browsing history (the list of websites you visited), cookies (small files websites use to remember you), and cached data (images and files stored on your device to load pages faster). When you use the Clear History button, you delete only the browsing history — the list of sites.
Cookies and cached data stay on your device unless you delete them separately. If you want to remove those as well, go to Safari > Settings > Privacy on Mac and click Manage Website Data, or on iPhone and iPad go to Settings > Safari > Advanced > Website Data and tap Remove All Website Data.
Clearing history on different Apple devices
On a Mac, open Safari, press Command + Y, and the history sidebar appears on the left. Click Clear History at the bottom, choose your timeframe, and confirm. You can also go to Safari > Clear History from the menu bar.
On iPhone and iPad, tap the clock icon at the bottom right of the screen (or swipe left from the right edge if you are using an older iOS version). Tap Clear History at the bottom, select your timeframe, and tap Clear History again. The clock icon may appear as a book icon on older iPad models.
If you use Safari on multiple devices with the same iCloud account, clearing history on one device does not automatically clear it on the others. You must clear history separately on each device.
Automatic history clearing when you close Safari
You can set Safari to delete your history automatically every time you close the app. On Mac, open Safari, go to Safari > Settings > Privacy, and check the box next to Remove history items. A dropdown menu appears where you can choose after one day, after one week, after two weeks, or after one month.
On iPhone and iPad, go to Settings > Safari > Clear History and Website Data and toggle the switch on. This setting clears history every time you close Safari, with no option to choose a timeframe — it removes everything.
Turning on automatic clearing does not affect your bookmarks, reading list, or saved passwords. Those remain on your device.
Private browsing as an alternative to clearing history
If you want to browse without creating a history record in the first place, use Private Browsing. On Mac, go to File > New Private Window or press Command + Shift + N. On iPhone and iPad, tap the tabs icon at the bottom right, then tap Private at the bottom left.
In Private Browsing mode, Safari does not save your history, cookies, or search history. When you close a private tab, that record disappears. However, websites can still see that you visited them, and your internet service provider can still see your activity.
You can have both regular and private tabs open at the same time. Switching between them does not affect which mode you are in — each tab remembers whether it is private or regular.
What clearing history does not do
Clearing your Safari history does not hide your browsing from your internet service provider, your employer's network, or the websites you visited. Those entities have their own records of your activity that exist independently of your device.
It also does not delete your bookmarks, reading list, iCloud tabs, or saved passwords. If you want to remove any of those, you must delete them separately through Safari settings or by right-clicking individual items.
Clearing history does not affect your iCloud account or sync your changes across devices. If you clear history on your Mac, your iPhone will still show the same history unless you clear it there too.
Frequently Asked Questions
Does clearing Safari history delete my bookmarks?
No. Clearing history removes only the list of websites you visited. Your bookmarks, reading list, and saved passwords stay on your device. If you want to delete a bookmark, right-click it and select Delete, or go to Bookmarks > Edit Bookmarks on Mac.
Can I recover history after I clear it?
No. Once you clear your history, it is permanently deleted from your device. Safari does not have an undo button for history clearing. If you need to find a website you visited, you may be able to search your email for confirmation messages or receipts from that site.
Will clearing history on my Mac also clear it on my iPhone?
No. Each device stores its own history separately. You must clear history on each device individually. Clearing history on one device does not sync to your other devices, even if they share the same iCloud account.
What is the difference between clearing history and private browsing?
Clearing history removes the record of sites you already visited. Private browsing prevents Safari from creating that record in the first place. Private browsing is useful if you want to avoid leaving a history trail going forward; clearing history is useful if you want to erase past activity.