How to search Safari history on Mac and iPhone
You remember the article about a leaking faucet, not its title or the site. To search Safari history, open History and type in its search field; the steps for Mac, iPhone, and iPad are below. If the words you remember come from the page itself, the later sections cover searching by date, querying Safari’s database, and how to search browser history by page text in other browsers.
How to search Safari history on Mac and iPhone
On a Mac, open Safari and choose History → Show All History, or press ⌘Y. Type a word, domain, or fragment in the search field at the upper right. Apple documents this path and says a Mac can keep history for as long as a year; the retention period can be changed in Safari's general settings (Apple's Safari User Guide, checked October 2026, Apple's Mac guide, checked October 2026).
On iPhone with iOS 27, go to Safari’s start page (or tap the Tabs button, then Add, to open one) and tap Show Bookmarks; with the Bottom or Top tabs layout, tap Show Bookmarks directly. Then tap History (Apple’s iOS 27 guide). On iOS 26 the route is More → Bookmarks → History (Apple’s iOS 26 guide). Apple doesn’t describe a search field there; the tip in an r/ios thread is to pull down on the history list until a search bar appears at the top.
On iPad, tap Show Sidebar → History. If History is missing, tap the Back button at the top of the sidebar first (Apple's iPad guide).
What does Safari history search match?
Apple's current Mac guide confirms a search field, but it does not specify whether current Safari searches page titles, URLs, or page text. Apple's 2009 Safari 4 announcement said its “Full History Search” searched complete page text, but that only documents Safari 4 (Apple Newsroom, 2009). I couldn't verify whether today's Safari still indexes page text, so don't rely on an exact phrase from an article returning a match.
Try a distinctive site name, URL fragment, or words likely to appear in the page title first. If you remember only a sentence or detail from the body, use a browser that documents content search, or search Safari's database on a Mac below.
Which browser searches page text?
“Not specified” below means the cited help page does not define that matching behavior; it does not prove the feature is absent.
| Browser | Title | URL | Page text | Natural-language / AI | Where it runs | Source date |
|---|---|---|---|---|---|---|
| Safari | Search exists; match field unspecified | Search exists; match field unspecified | Not specified today; Safari 4 documented full text | Not specified | Safari History; iCloud can sync it (Apple Support) | Current guide checked 2026-10-02; full-text claim from 2009 |
| Chrome | Short AI-history searches match title | Short AI-history searches match URL | Yes after opt-in; only pages visited after enablement | Yes; US location and English required | Content saved encrypted on device; queries, best-match content, and outputs sent to Google (Google Chrome Help, Chrome 133 release notes) | Help checked 2026-10-02; feature announced 2024-08-01 |
| Firefox | Search field exists; match field unspecified | Search field exists; match field unspecified | Not specified | On-device semantic search tested in Firefox Beta 142 (2025) | Library history search (Mozilla Support); semantic test runs locally (Mozilla, 2025) | Checked 2026-10-02 |
| Microsoft Edge | Not specified | URL stored; search match unspecified | Not specified | Yes in Edge 138+ on Windows and macOS: synonyms, natural language, typos | Not stated; admins can switch it off, leaving exact matches (Microsoft policy reference) | Checked 2026-10-02 |
| Octoweb | Palette fuzzy-matches titles | Palette fuzzy-matches URLs | / query indexes first 6,000 characters from last 2,000 pages |
Prefix-match text search; no natural-language claim | Local JSON index; agents can search it over MCP (Octoweb 0.15 release) | 0.15.0, released 2026-09-14 |
Google announced its optional AI history search in August 2024, initially for US users. Its current help page says the feature is available in the US and English, and page text is stored locally in encrypted form after opt-in. Google's Chrome 133 policy screenshot adds the other half of the data flow: when you search, your query, the content of best matches, and generated output are sent to Google. Check Settings → AI innovations → History search, powered by AI before enabling it (Google Chrome announcement, 2024, Google Chrome Help, checked October 2026, Chrome 133 release notes, 2025). Google's help page says new page content is searchable only after you turn the feature on. It offers Yesterday, Last 7 days, and Last 30 days filters, up to three best matches, and lets you turn the setting off again.
To search browser history in Firefox, open History → Manage history to reach the Library and use its Search History field (Mozilla Support, checked October 2026). The page documents searching for a visited website, not matching page text. Mozilla also began testing an on-device “Semantic History Search” for address-bar results in Firefox Beta 142 in July 2025 (Mozilla’s test-day post). Edge’s history help documents stored URLs and visit times (Microsoft Support, checked October 2026), and Microsoft’s policy reference says Edge 138 and later on Windows and macOS accept synonyms, natural-language phrases, and minor spelling errors in history search, falling back to exact matches when an admin turns it off (Microsoft Edge policy reference).
Can I find a website I visited by date instead?
Yes. If you remember roughly when you visited, inspect the history around that date instead of trying more title words. On a Mac, open History → Show All History and use the chronological entries; Apple says history can be retained for up to a year, subject to the setting on that Mac (Apple’s Safari User Guide, checked October 2026). On iPhone, open History as described above. The separate Clear menu is for deleting: its timeframe choices do not filter your search results (Apple’s iOS 27 guide).
If Safari is enabled in iCloud on your devices, history is kept up to date across iPhone, iPad, and Mac. That means you can search the synced history on another device, but a page won't appear there if it was removed or never synced (Apple's iCloud guide, checked October 2026).
Private Browsing visits do not appear in Safari History. If a visit is missing and you used a Private tab, there is no history entry to search (Apple's Safari iPhone guide, checked October 2026).
Can I search Safari's database on a Mac?
Yes. For a title or URL term and a known date range, query a copy of Safari’s SQLite history database. This reads the default Safari profile; Terminal needs Full Disk Access because Safari’s history file is protected (Apple’s Mac privacy guide). Other Safari profiles keep their own History.db in a Profiles/<UUID>/ folder; on macOS 27 that folder sits under ~/Library/Containers/com.apple.Safari/Data/Library/Safari/ (DLEAPP pull request, 2026).
Quit Safari first so the database is not open while you copy it, and copy it together with its -wal and -shm files: recent visits can sit there before they reach the main file (Browser Forensics’ 2026 History.db guide). Then query the copy. Replace invoice and the dates with your own term and range. A successful copy prints nothing; the query prints local visit time, page title, and URL. No rows means nothing in that date range matched the title or URL.
mkdir -p /tmp/safari-history
cp "$HOME/Library/Safari/History.db"* /tmp/safari-history/
sqlite3 /tmp/safari-history/History.db <<'SQL'
SELECT datetime(v.visit_time + 978307200, 'unixepoch', 'localtime') AS visited,
v.title,
i.url
FROM history_visits AS v
JOIN history_items AS i ON i.id = v.history_item
WHERE (v.title LIKE '%invoice%' OR i.url LIKE '%invoice%')
AND date(v.visit_time + 978307200, 'unixepoch', 'localtime')
BETWEEN '2026-09-01' AND '2026-09-30'
ORDER BY v.visit_time DESC;
SQL
The query joins one visit to its URL, then converts Safari’s timestamp (seconds from January 1, 2001) to a local date. Those table names, columns, and the 978307200 offset are documented in Browser Forensics’ 2026 History.db guide. I ran the copy and the query against a test database with the same two tables (sqlite3 3.51.0 on macOS 26.7). It returned only the matching visits inside the range, and a copy made without the -wal file had lost the newest visits. Delete /tmp/safari-history when you are done. If you grant Terminal Full Disk Access, you can remove that permission later in System Settings → Privacy & Security → Full Disk Access.
If sqlite3 reports database is locked, quit Safari before copying and querying again; Safari can keep its history database open (Retraced’s 2026 guide). If cp fails with a permission error, Terminal doesn’t have Full Disk Access yet; grant it in System Settings → Privacy & Security → Full Disk Access (Apple’s Mac privacy guide). If cp reports No such file or directory, check the path for your macOS version and profile as described above.
How can I search page text locally?
If you want page text search kept on your Mac, Octoweb's / palette search indexes the first 6,000 characters from each of the last 2,000 visited pages in a local JSON file. It returns matching passages; private tabs and error pages are not indexed. Start a query with /; every word must match as a prefix. Agents can run the same search over MCP. I build Octoweb, so weigh that accordingly. Its page-memory release notes list the limits.
For open tabs and history in one palette, see the keyboard-first browsing guide.
Octoweb is free and open source, for macOS.
Install it →