Where Safari keeps your browsing history

Safari stores your browsing history automatically as you visit websites. To see it, open Safari and press Command + Y on Mac, or tap the clock icon at the bottom of the screen on iPhone and iPad. A sidebar will appear showing websites you visited, organized by time — today, yesterday, earlier this week, and earlier dates.

The history list shows the page title and the time you visited it. If you visited the same site multiple times in one day, each visit appears as a separate entry. Clicking or tapping any entry takes you back to that page.

Key Takeaways

  • Press Command + Y on Mac or tap the clock icon on iPhone and iPad to open your browsing history in Safari.
  • Safari organizes history by date — today, yesterday, earlier this week — making it straightforward to find recent visits without scrolling through months of data.
  • You can search your history by typing a website name or page title into the search box that appears at the top of the history sidebar.
  • History is stored locally on your device, but if you use iCloud, Safari can sync history across your Mac, iPhone, and iPad automatically.
  • Clearing your history removes it from your device, but synced history on other devices remains unless you clear it there too.

Searching for a specific website in your history

If you remember part of a website's name or the page title but not when you visited it, use the search box at the top of the history sidebar. Open your history with Command + Y (Mac) or the clock icon (iPhone and iPad), then type what you remember. Safari filters the list as you type, showing only matching results.

For example, typing "recipe" will show all pages with "recipe" in the title, regardless of when you visited them. This is faster than scrolling through weeks of history one date at a time.

Understanding how long Safari keeps your history

By default, Safari keeps your browsing history for 30 days. After 30 days, the oldest entries disappear automatically. You can change this setting on Mac by opening Safari, clicking Safari in the menu bar, selecting Settings, clicking the General tab, and changing the "Remove history items" dropdown to 1 day, 7 days, 1 year, or never.

On iPhone and iPad, go to Settings > Safari, scroll down to "History", and tap to choose how long Safari keeps your history. If you choose "never," your history will accumulate indefinitely until you manually clear it.

Clearing your history and what it affects

To clear your browsing history on Mac, press Command + Delete or go to Safari > Clear History. A dialog box appears asking how far back you want to clear — the last hour, today, today and yesterday, or all history. Choose your timeframe and click Clear History.

On iPhone and iPad, go to Settings > Safari, scroll down, and tap Clear History and Website Data. You cannot choose a specific timeframe on mobile — this clears everything. Clearing history removes it from that device only. If you use iCloud to sync Safari across devices, the history remains on your other devices unless you clear it there too.

How iCloud syncing affects your history

If you sign in to iCloud on your Mac, iPhone, and iPad, Safari syncs your browsing history across all devices automatically. This means opening your history on your Mac shows websites you visited on your iPhone, and vice versa. The sync happens in the background whenever your devices are connected to the internet.

To turn off history syncing, go to Settings > [Your Name] > iCloud on iPhone and iPad, or System Settings > [Your Name] > iCloud on Mac. Find Safari in the list and toggle it off. After you turn off syncing, your existing synced history remains on each device, but new browsing activity will no longer sync.

Finding history from a specific date or time

Safari groups history by date, so finding something from a particular day is straightforward. Open your history and look for the date heading you need — "Today," "Yesterday," "Earlier This Week," or a specific date. Click or tap the date heading to expand it and see all pages visited that day, listed in reverse chronological order (newest first).

If you remember roughly when you visited a site but not the exact date, scan through the date groups. The search box at the top of the history sidebar also helps here — type a partial website name and Safari shows all matches, then you can see which date they appear under.

What to do if you cannot find a page in your history

If a page does not appear in your history, it may have been cleared. Check your history retention setting — if it is set to 1 day and you visited the page more than a day ago, it will no longer be there. You can also check whether you visited the page in a Private Window. Safari does not record pages visited in Private mode, so they will never appear in your history.

If you think you visited a page recently but cannot find it, try searching for a word or phrase you remember from the page title or URL. If the search returns no results, the page was either cleared or visited in Private mode. You can also check your iCloud synced devices — if you visited the page on a different device, it may still appear there.

Frequently Asked Questions

Can I recover history after I clear it?

No. Once you clear your history in Safari, it is permanently deleted from that device. If you use iCloud syncing, the history remains on your other devices unless you cleared it there too. There is no undo button or recovery option.

Does Safari history show up in iCloud backups?

Yes, if you back up your iPhone or iPad to iCloud, your Safari history is included in that backup. If you restore from a backup, your history comes back with it. Mac backups work the same way if you use Time Machine or iCloud backup.

Why does my history show pages I do not remember visiting?

Pages can appear in your history if you clicked a link accidentally, if someone else used your device, or if a website redirected you through multiple pages. You can delete individual history entries by right-clicking (Mac) or long-pressing (iPhone and iPad) the entry and selecting delete.

Can someone see my Safari history if they use my device?

Yes, anyone with access to your device can open your history and see where you have been. If you want to keep your browsing private, use Private Windows in Safari — pages visited there do not appear in your history. You can also clear your history regularly or set it to clear automatically when you close Safari.

What is the difference between history and cookies?

History is a list of pages you visited. Cookies are small files websites store on your device to remember information about you, like login details or shopping cart contents. Clearing history does not clear cookies, and clearing cookies does not clear history. You can manage cookies separately in Safari Settings.