Recover Safari History on Mac: What Works
You can recover Safari history on a Mac only if a copy of the data still exists somewhere. Deleting history inside Safari, clearing it through Settings, or closing a Private Browsing window does not create a recoverable record, and Apple does not keep your browsing history on its servers. What you can do is look for surviving copies on the Mac itself, in Time Machine backups, or in iCloud if Safari syncing was turned on and the deletion has not yet propagated. Everything beyond that — third-party recovery tools, DNS logs, router logs, sysdiagnose files for recent crashes — recovers fragments at best, not a clean list of visited pages.
How Safari Stores History on macOS
Safari keeps its browsing record in a SQLite database named History.db, stored inside your user Library at ~/Library/Safari/. That single file holds visited URLs, page titles, visit timestamps, redirect chains, and the counts used for autocomplete ranking. Related data lives nearby: Downloads.plist for downloaded files, Bookmarks.plist for favourites and the reading list, and CloudTabs.db for tabs open on your other devices. Cookies, local storage, and site caches sit in ~/Library/Containers/com.apple.Safari/ and in the WebKit data folders.
Two details matter for recovery. First, the modern macOS Library folder is hidden by default, so most people never see these files at all. Second, Safari may rewrite or compact History.db when it clears history, and SQLite can reuse the freed space. A file-recovery utility that scans free disk space therefore has a small window and a low success rate for history specifically — far lower than for a deleted document you saved and later trashed.
Checking iCloud and Other Synced Devices First
This is the fastest route and the one most likely to succeed. If Safari is enabled in iCloud settings, your history synced to your iPhone and iPad, and those devices keep their own copy. Clearing history on the Mac does not instantly erase it on a device that was offline at the time or that has syncing paused.
- Open Safari on your iPhone or iPad and check the History list (the book icon in the toolbar) before that device syncs.
- If the history is still there, consider what you actually need — a specific URL, a date, a page title — and note it down before it disappears.
- On a second Mac signed into the same Apple Account, check Safari history there too; a Mac that has been shut down may still hold the older database.
Do not expect iCloud to act as an archive. Apple's iCloud data storage policy does not provide a browsable history backup, and syncing is designed to mirror deletions across devices within minutes. If more than a short time has passed and all devices were online, the synced copy is almost certainly gone.
Recovering From Time Machine and Local Backups
Time Machine is the most reliable path for a user who had backups running before the deletion. Because it snapshots the whole home folder, it captures History.db as it existed at each backup interval.
- Connect the Time Machine drive and open the backup from the menu bar or System Settings.
- Navigate to your home folder, then use the Finder's Go > Go to Folder command to reach
~/Library/Safari/. - Step back through snapshots using the timeline until the History.db file shows a date before the deletion.
- Restore the file, or copy it to the Desktop first so you can inspect it without overwriting your current database.
A restored History.db replaces the current one, so anything visited after the backup date is lost from Safari. Copying rather than restoring avoids that trade-off, but a copied database is only readable with a SQLite browser, not by merging it back into Safari. If you use a third-party backup tool that keeps versioned copies, the same principle applies: look for a snapshot from before the clear, and restore only the Safari folder.
What Third-Party Recovery Tools Can and Cannot Do
Recovery apps that scan a drive for deleted files can sometimes resurrect an older History.db if the blocks it occupied have not been overwritten. In practice this is a gamble, and the odds drop sharply on solid-state drives, where macOS's TRIM command tells the storage to discard deleted blocks quickly. Some things worth knowing before paying for anything:
- Stop using the Mac for writes as soon as you realise history is missing — every download, cache write, or app update reduces the chance of recovering the old database blocks.
- Run any scan from an external drive rather than installing the tool onto the affected startup disk.
- Be sceptical of tools that promise to recover history by date or by website. A recovered SQLite file is either intact or it is not; it cannot be reassembled from nothing.
- Check whether the tool needs Full Disk Access in Privacy & Security settings — macOS protects these folders, and a tool that cannot read them cannot recover anything from them.
Indirect Traces That Survive Deleting History
Even when the history database is gone, other records often remain. These do not give you a complete browsing list, but they can answer a specific question like "which site did I visit last Tuesday".
- Autocomplete and form data: saved searches and form entries in Safari's settings may reveal sites you used.
- Bookmarks and Reading List: many people bookmark or add pages to the Reading List without realising it, and those entries persist after history is cleared.
- Favourites and frequently visited tiles: Safari's start page tiles are drawn from history, so they vanish with it, but bookmark folders often hold the same sites.
- Downloads: the Downloads list and the files themselves in your Downloads folder record where a file came from.
- DNS and router logs: your network's DNS resolver or router may log domain names for a period, though these logs show hosts, not full page addresses.
- System logs: unified logging records some network activity, but the data is technical, short-lived, and not designed as a browsing record.
Common Problems and Misconceptions
The most widespread misconception is that clearing history is reversible in the same way as emptying the Trash. It is not: Safari performs a database operation, not a file move, so there is nothing in the Trash to put back. A second common problem is confusion between history and bookmarks — clearing history never removes bookmarks, and restoring a backup of Bookmarks.plist will not bring back visited pages.
Locked Library folders are another frequent snag. If Go to Folder refuses to open ~/Library/Safari/, the folder is hidden rather than missing; holding the Option key while opening the Go menu reveals Library in the list. If macOS asks for permission to access Safari data, that is the privacy protection working as intended, and you must grant access deliberately rather than assume the data is gone.
Finally, people often ask whether Private Browsing leaves traces. By design it does not save history, autocomplete entries, or cookies after the window closes. A Private window that is still open does hold its history for that session, so check open windows before closing them if you need to see where you have been.
Frequently Asked Questions
Does clearing Safari history delete it from iCloud?
Yes, in effect. iCloud mirrors the change across devices signed into the same account, so once every device has synced, the cleared history is gone everywhere. A device that was offline or had Safari syncing disabled may briefly keep its own copy.
Can Apple recover my Safari history for me?
No. Browsing history is stored locally and synced through your own iCloud account; Apple does not hold a server-side archive of pages you visited and cannot retrieve a cleared history on request.
Where is the Safari history file on a Mac?
It is History.db inside ~/Library/Safari/. The Library folder is hidden in Finder, so reach it through Go > Go to Folder or by holding Option in the Go menu.
Can I recover history after emptying the Trash?
Only from a backup or another device. Emptying the Trash removes files you deleted yourself; Safari history never passes through the Trash in the first place, so this step changes nothing either way.
Why does Safari show no history at all?
Common causes are a recent clear, a fresh macOS install or new user account, Safari syncing having replaced the local database from iCloud, or a permissions problem preventing Safari from reading its own data folder.
Does Time Machine back up Safari history?
Yes, unless you excluded your home Library folder from backups. Time Machine captures the Safari folder along with the rest of your home directory, which is why restoring an older snapshot is the most dependable recovery method.