Where Safari stores your search history
Safari keeps a record of every website you visit and every search you perform. On Mac, you can see this history by opening Safari and pressing Command + Y, or by clicking the History menu at the top and selecting "Show History". On iPhone and iPad, open Safari, tap the book icon at the bottom of the screen, then tap the clock icon labeled "History".
The history list shows sites in reverse chronological order — most recent first. You can search within this list by typing in the search box that appears at the top. Safari organizes older history by time period: "Earlier Today", "Yesterday", "Last Week", and "2 Weeks Ago" on mobile devices, or by specific dates on Mac.
Your search history and browsing history are stored together in Safari. When you search using Safari's address bar, those searches appear in the same history list as websites you visited directly. This means you cannot separate searches from browsing in the standard history view.
Key Takeaways
- Press Command + Y on Mac or tap the clock icon on iPhone and iPad to open your Safari history immediately.
- Safari stores searches and website visits together in one chronological list, organized by date and time.
- You can search within your history using the search box that appears when you open the history panel.
- Clearing your history removes all records at once, but you can delete individual items by right-clicking or swiping on them.
- Private browsing mode prevents Safari from recording any history, searches, or cookies during that session.
Searching within your history on Mac
Once you have opened the History panel on Mac by pressing Command + Y, a search box appears at the top right. Type any part of a website name, URL, or search term you remember. Safari filters the entire history list to show only matching results as you type.
If you remember roughly when you visited a site, you can also click on a date in the left sidebar to narrow down the list. The sidebar shows "Today", "Yesterday", and earlier dates. Clicking a date shows only the sites you visited on that day, making it faster to find something from a specific time period.
Searching within your history on iPhone and iPad
On iPhone and iPad, tap the book icon at the bottom center of Safari, then tap the clock icon to open History. A search box appears at the top of the screen. Type what you are looking for — part of a website name, a search term, or a URL — and Safari shows matching results.
The history list is grouped by time period. Tap "Earlier Today", "Yesterday", or "Last Week" to expand those sections and see all sites visited during that period. This grouping makes it easier to narrow down your search if you remember roughly when you visited something.
Deleting individual history items
You do not have to clear all your history at once. On Mac, right-click any item in the history list and select "Delete" from the menu that appears. The item is removed immediately, but the rest of your history remains.
On iPhone and iPad, swipe left on any history item to reveal a red delete button. Tap it to remove that single entry. You can delete multiple items one at a time using this method, though clearing everything at once is faster if you want to remove a large block of history.
Clearing all history at once
On Mac, click the History menu at the top and select "Clear History". A window 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". This removes browsing history, search history, and cookies all together.
On iPhone and iPad, go to Settings, scroll down and tap Safari, then tap "Clear History and Website Data". A menu appears with options for how much history to clear. Select your choice and confirm. This action also clears cookies and other website data stored on your device.
Using private browsing to avoid recording history
If you do not want Safari to record your browsing or searches, you can use Private Browsing mode. On Mac, click File in the menu bar and select "New Private Window", or press Command + Shift + N. Any browsing in that window will not appear in your history.
On iPhone and iPad, tap the overlapping squares icon at the bottom right (or bottom left on older models), then tap "Private" at the bottom of the screen. Open a new tab in private mode. Websites you visit and searches you perform in private tabs do not get recorded in your history, and cookies are not saved.
Private browsing does not hide your activity from your internet service provider or network administrator — it only prevents Safari from storing a local record on your device. When you close a private window or tab, Safari forgets those sites and searches immediately.
Finding searches in Safari suggestions
When you start typing in Safari's address bar, the browser shows suggestions based on your history and bookmarks. These suggestions include previous searches you have performed. If you remember the beginning of a search term, you can type it in the address bar and Safari will show matching searches from your history as suggestions.
Tapping a suggestion takes you directly to that search result or website. This is often faster than opening the full history panel if you remember even a few words of what you searched for. The suggestions appear in real time as you type, so you can see matches immediately.
Frequently Asked Questions
Can I see what I searched for if I cleared my history?
No. Once you clear your history in Safari, those records are deleted and cannot be recovered through Safari itself. If you need to find something you searched for previously, you would need to search for it again or check if you bookmarked the result.
Does Safari save searches differently than website visits?
No. Safari treats searches and website visits the same way — both appear in your history list in chronological order. You cannot filter to show only searches or only websites in the standard history view.
Will my search history sync across my devices?
Yes, if you have iCloud enabled in Safari settings. Your history, bookmarks, and open tabs sync across all devices signed in with the same Apple ID. You can turn off syncing in Settings > [Your Name] > iCloud > Safari if you prefer to keep history separate on each device.
What happens to my history if I use a shared device?
Your history remains visible to anyone who opens Safari on that device unless you clear it or use Private Browsing mode. If you share a device with others, consider clearing your history after each session or using Private Browsing when you want to keep your activity private.
Can I export my Safari history?
Safari does not have a built-in export feature for history. However, on Mac you can access the history database file directly through the Finder if you have technical knowledge. For most users, taking screenshots or manually noting important sites is the practical alternative.