Delete 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 delete — the last hour, today, today and yesterday, or all time — then tap or click Clear History again to confirm.

Safari also stores other data alongside your history: cookies, cached images, and autofill information. If you want to clear those at the same time, use the menu instead. On Mac, go to Safari > Clear History and select your time range. On iPhone or iPad, open Settings > Safari > Clear History and Website Data, then confirm.

The difference matters if you want to keep your passwords and autofill suggestions but remove the record of where you've been. Clearing history alone leaves those intact. Clearing history and website data removes everything at once.

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 time range.
  • Clearing history alone removes only the list of sites you visited, while clearing history and website data also removes cookies, cached images, and autofill information.
  • You can set Safari to clear your history automatically every time you close the browser by turning on Private Browsing or adjusting your settings.
  • Clearing history does not delete files you downloaded or remove your saved passwords unless you specifically clear those separately.

The difference between clearing history and clearing website data

When you clear only your history, Safari removes the list of websites you visited and the search terms you entered. The browser no longer shows those sites in your history menu or in the dropdown when you start typing a URL. However, cookies and cached data remain on your device.

Clearing history and website data removes cookies, which are small files websites use to remember your login status and preferences. It also clears the cache — temporary copies of images and files that help pages load faster on your next visit. After clearing both, websites may load slightly slower the first time you visit them again because Safari has to download everything fresh.

Autofill information — saved usernames, passwords, and credit card numbers — stays on your device unless you clear it separately through Settings > Passwords & Autofill on iPhone and iPad, or Safari > Preferences > Autofill on Mac. This separation is intentional: most people want to keep their passwords even when they delete their browsing history.

Set Safari to clear history automatically

Safari can clear your history every time you close the browser. On Mac, go to Safari > Preferences > General and look for the option Remove history items. Choose after one day, after one week, after two weeks, or manually. If you select anything other than manually, Safari will delete entries older than that timeframe whenever you quit the application.

On iPhone and iPad, open Settings > Safari > Clear History and Website Data and toggle the switch on. This clears your history and website data every time you close Safari completely — not just when you switch apps. The setting applies to all your Safari windows and tabs.

Private Browsing mode offers another approach. When you open a Private Browsing tab or window, Safari does not save your history, cookies, or autofill data for that session at all. On Mac, click File > New Private Window. On iPhone and iPad, tap the tabs icon and then Private at the bottom. Close the private tab or window when you're done, and nothing from that session remains.

What clearing history does not remove

Deleting your history does not remove files you downloaded. Your Downloads folder keeps those files unless you delete them separately. If you want to remove a downloaded file, open Safari > Preferences > General on Mac and click Remove download list items, or go to Settings > Safari on iPhone and iPad and toggle Remove Downloads. This only affects the list Safari displays — the actual files stay on your device until you delete them from your Downloads folder or Files app.

Saved passwords and credit card information also remain after you clear history. Safari stores these in your iCloud Keychain, a separate encrypted storage system. To remove a saved password, go to Settings > Passwords & Autofill > Website & App Passwords on iPhone and iPad, or Safari > Preferences > Passwords on Mac, find the entry, and delete it.

Bookmarks and reading list items are not affected by clearing history either. These are stored separately and remain on your device unless you delete them individually.

Clear history on a shared device

If multiple people use the same Mac or iPad, clearing your history removes only your own browsing record, not anyone else's. Each user account on Mac has its own Safari history and settings. On a shared iPad, however, Safari is shared across all users unless you set up separate user accounts, which requires iPad OS 17 or later.

If you share an iPad without separate user accounts, anyone who opens Safari sees the same history and can access the same saved passwords. In that case, use Private Browsing mode to keep your session separate, or clear the shared history and website data when you're done. Be aware that clearing history on a shared device removes it for everyone who uses that device.

On a Mac, each person who logs in has their own Safari data. If you want to clear history for another user account, you would need to log into that account and clear it yourself.

Recover deleted history

Once you clear your Safari history, you cannot recover it through Safari itself. The browser does not keep a backup of deleted history. However, if you use iCloud to sync Safari across your devices, clearing history on one device may sync that deletion to your other devices within a few minutes.

If you want to keep a record of your browsing before you clear it, you can export your history on Mac by going to File > Export Bookmarks, though this exports bookmarks rather than full history. Third-party tools exist that can archive or export Safari history, but they require downloading additional software.

The most practical approach is to clear history regularly rather than waiting until you need to delete a large amount at once. This reduces the chance you'll accidentally clear something you wanted to keep.

Frequently Asked Questions

Does clearing history delete my saved passwords?

No. Clearing history removes only the list of sites you visited and cookies. Your saved passwords stay in iCloud Keychain unless you delete them separately through Settings or Preferences. If you want to remove a specific password, find it in your password list and delete it individually.

Will clearing history make Safari faster?

Clearing history itself does not speed up Safari noticeably. However, clearing website data and cache can free up storage space on your device. If your device is running low on storage, clearing cached data may help, but the performance gain is usually small unless you have years of cache built up.

Can I clear history for only one website?

Safari does not have a built-in option to delete history for a single site. You can only clear history by time range — the last hour, today, or all time. If you want to remove one site from your history, open your history, find the entry, and swipe left on Mac or long-press on iPhone and iPad to delete it individually.

Does Private Browsing hide my activity from my internet provider?

No. Private Browsing prevents Safari from saving your history on your device, but your internet provider can still see which websites you visit through your network connection. Only a VPN can hide your browsing activity from your provider. Private Browsing is designed to keep your browsing private from other people who use the same device.

What happens if I clear history on my Mac but use Safari on my iPhone?

If you have iCloud sync turned on, clearing history on your Mac will sync to your iPhone within a few minutes, and your iPhone history will be cleared too. If you want to keep history on one device but clear it on another, turn off iCloud sync for Safari in Settings > [Your Name] > iCloud on iPhone or System Settings > [Your Name] > iCloud on Mac.