To restore your last browsing session in Safari, reopen the browser and use the History menu, or press Command+Shift+T on a Mac. On iPhone and iPad, hold the Tabs button and select the closed tab list, or use the private browsing option if you had private windows open. This article explains every method, what Safari actually saves, and how to recover tabs after a crash or accidental close.
What Safari Considers a “Session”
Safari does not have a single “session” file like some other browsers. Instead, it keeps track of your open tabs in the current window, plus a history of recently closed tabs and windows. When you quit Safari normally, it can reopen the same windows and tabs on the next launch if you have that setting enabled. If you force-quit or the system crashes, Safari may still recover tabs from its last saved state, but the behavior depends on your macOS or iOS version and your settings.
On macOS, Safari stores tab state in a plist file inside your user Library folder. On iOS and iPadOS, the system manages tab restoration automatically. The key distinction is between “reopen last window” (which restores the previous window’s tabs) and “reopen all windows from last session” (which restores multiple windows).
How to Restore on Mac (macOS)
If you just quit Safari and want the same tabs back, the quickest way is to reopen Safari and immediately press Command+Shift+T. This reopens the last closed tab, but if you closed the entire window, it reopens that window with all its tabs. If that doesn’t work, use the menu bar:
- Open Safari.
- Click the History menu.
- Look for Reopen Last Closed Tab or Reopen Last Closed Window.
- If you want Safari to always reopen your previous session on launch, go to Safari > Settings > General and set “Safari opens with” to All windows from last session.
Note that Command+Shift+T only works if you haven’t closed and reopened Safari multiple times since. If you’ve opened new windows, the shortcut might restore the most recent closed tab, not the whole session.
How to Restore on iPhone and iPad
On iOS and iPadOS, Safari doesn’t have a keyboard shortcut. Instead:
- Open Safari and tap the Tabs button (the two overlapping squares) in the bottom-right corner.
- Tap the plus (+) button to open a new tab.
- Press and hold the plus button – a menu appears with “Recently Closed Tabs”.
- Tap any of the listed tabs to reopen it.
If you had multiple windows open, tap the sidebar icon (top-left) and check the “Recently Closed” section. On iPad, you can also use the trackpad or magic keyboard: press Command+Shift+T just like on Mac, but this only works if you have a hardware keyboard connected.
For private browsing tabs, they are not saved in the “Recently Closed” list for privacy reasons. If you close a private window, you cannot restore it – the tabs are gone permanently.
Why Tabs Sometimes Disappear After a Crash
If Safari crashes or your Mac restarts unexpectedly, you might lose tabs even if you had “All windows from last session” enabled. This happens because Safari writes the session state to disk periodically, not continuously. If the crash occurs before the state is saved, the recovery point is the last saved state, which could be hours old.
To minimize loss, you can enable “Automatically restore windows and tabs” in Safari’s General settings (macOS) or rely on iCloud Tab syncing. On iPhone/iPad, Safari saves tabs continuously, but a force-quit can still lose the last few seconds. If you have iCloud Tabs enabled, you can open the same tabs on another device by going to the Tabs view and scrolling to “iCloud Tabs”.
How to Set Safari to Always Reopen Your Last Session
If you want Safari to automatically restore your previous session every time you launch it, change the startup behavior:
- macOS: Go to Safari > Settings > General. Next to “Safari opens with”, select All windows from last session. This will restore every window and tab that was open when you quit.
- iOS/iPadOS: There is no direct setting to force Safari to reopen the last session. However, if you close Safari by swiping it away from the app switcher, it will not restore tabs. Instead, just press the Home button or switch apps – Safari keeps your tabs in memory and reopens them when you return.
Note that if you have “All windows from last session” selected, Safari will also restore private windows if they were open when you quit. This is a privacy consideration – anyone with access to your Mac can see those tabs.
Recovering Tabs from a Previous Day or Week
If you closed Safari yesterday and want a tab from that session, you can dig into the History menu. On Mac, go to History > Show All History and search for the site. On iPhone/iPad, tap the book icon, then the clock icon (History), and search. This only works if the site was actually visited and not in private mode.
For a more complete recovery, you can look at the Safari history file on Mac: ~/Library/Safari/History.db. But that’s a SQLite database – not something you can open with a text editor. If you’re comfortable with Terminal, you can run sqlite3 queries, but that’s overkill for most users.
There is no built-in way to restore a session from three days ago as a single group of tabs. Safari only keeps “Recently Closed” for the current session and the last closed window. Once you quit Safari and reopen it, the “Recently Closed” list resets (except for the last closed window).
What to Do If the Restore Option Is Grayed Out
If “Reopen Last Closed Window” is grayed out, it means Safari has no saved window to restore. This can happen after a force-quit or if you’ve already restored the last window. Try these:
- Check if you have multiple windows open – restore only works if at least one window was closed.
- Look in the History menu for “Recently Closed” – on Mac, it appears as a submenu.
- On iPhone/iPad, press and hold the plus button – if the list is empty, there’s nothing to restore.
- If you had private tabs, they won’t appear – that’s by design.
If nothing works, your only option is to find the sites in your browsing history and reopen them manually.
Frequently Asked Questions
Does Command+Shift+T restore all tabs or just one?
On Mac, if you closed a single tab, it reopens that tab. If you closed an entire window, it reopens the whole window with all its tabs. The shortcut works for the most recent closure only.
Can I restore a private browsing session?
No. Safari deliberately does not save private tabs or windows. Once you close a private window, the tabs are gone and cannot be recovered through any built-in method.
Why does Safari not reopen my tabs after I restart my Mac?
If you have “All windows from last session” enabled, it should. But if you force-quit Safari or the system crashes, the session state may not have been saved. Also, if you open Safari before the system fully finishes restarting, it might not read the saved state.
How do I restore tabs on iPhone after I accidentally closed the Safari app?
If you swipe Safari away from the app switcher, the tabs are lost. But if you just press the Home button, Safari keeps the tabs. To recover after a swipe-away, open Safari and press and hold the plus button – you’ll see “Recently Closed Tabs”.
Is there a way to save my session manually so I never lose tabs?
You can bookmark all open tabs: on Mac, go to Bookmarks > Add Bookmarks for These 10 Tabs (or whatever number). On iPhone/iPad, tap the share icon, then “Add Bookmarks for X Tabs”. This creates a folder you can reopen anytime.
Does iCloud Tabs help restore a session?
Yes, if you have iCloud Tabs enabled, you can open tabs from another device. On Mac, go to History > iCloud Tabs. On iPhone/iPad, tap the Tabs button, then scroll to “iCloud Tabs”. This doesn’t restore the exact session, but it gives you access to the same pages.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Gadgets After Support Ends: Do They Improve?
- Delete Google Search Results About You
- OnePlus Buds Pro 3 Price Drop: Are They Worth It?
- Cloud Migration Ways to Prepare
- Remote Work Productivity Hacks That Actually Work
- Epic Games Removes Dark and Darker? Fact Check