If you accidentally close a tab in Safari on your Mac, you can reopen it instantly with a keyboard shortcut or menu command. Press Command + Z right after closing, or use Shift + Command + T to bring back the most recently closed tab—even if you’ve closed several.
Why Tabs Close and How Safari Tracks Them
Safari keeps a short history of tabs you’ve closed during your current browsing session. This isn’t the same as your browsing history—it’s a temporary list that lets you undo a close. The list resets when you quit Safari or restart your Mac, so you can’t recover a tab from yesterday using these methods (though your History menu may still have the page).
When you close a tab, Safari stores its URL and scroll position. Reopening it restores the exact page, including form input in most cases, because the page is reloaded from the web. If the page was dynamic (like a shopping cart), the server may have expired the session, so you might see a fresh page instead of your previous state.
The Quickest Ways to Reopen a Closed Tab
There are three built-in methods, each useful in different situations:
- Keyboard shortcut: Press Shift + Command + T to reopen the last closed tab. Repeat it to reopen multiple tabs in the order they were closed.
- Undo command: Press Command + Z immediately after closing a tab. This works only for the very last action, so if you’ve done anything else since, it won’t work.
- Menu bar: Click History in the menu bar, then choose Recently Closed. A submenu lists your last several closed tabs—click any one to reopen it.
The History > Recently Closed list is the most powerful because it shows a visible list, not just the last one. It typically holds the last 10–20 tabs, depending on your macOS version.
Reopening Tabs After Quitting Safari
If you quit Safari entirely, the closed-tab list is cleared. However, you can restore the whole window from your last session:
- Open Safari.
- Click History in the menu bar.
- Choose Reopen Last Closed Window (or press Shift + Command + T if you haven’t opened any new tabs yet).
This restores the most recently closed window with all its tabs. If you’ve closed multiple windows, repeat the command to bring them back one by one. Note that this only works if you haven’t manually cleared your history or used Private Browsing.
Why Private Browsing Tabs Can’t Be Recovered
Tabs closed in a Private Browsing window are not stored in the Recently Closed list. Safari deliberately discards all private browsing data when you close the window, including the tab history. If you close a private tab, the only way to get it back is to retype the URL or find it in your regular history (if you visited it before going private). This is a privacy feature, not a bug.
What to Do When the Shortcut Doesn’t Work
If Shift + Command + T does nothing, check these common causes:
- You’re in Private Browsing: The shortcut won’t work for private tabs.
- You’ve opened a new tab since closing: The shortcut reopens the last closed tab, but if you’ve since opened a new tab, it still should work—unless you’ve closed that new tab too, which changes the order.
- Safari was restarted: The closed-tab list is lost on quit.
- Keyboard shortcut conflict: A third-party app may have taken over that shortcut. Check System Settings > Keyboard > Keyboard Shortcuts.
If the shortcut still fails, use the History menu instead—it’s more reliable because it doesn’t depend on the undo stack.
How to Recover a Tab After a Crash or Force Quit
If Safari crashes or you force-quit it, the next launch usually offers to restore your windows. If you dismiss that prompt, you can still recover:
- Open Safari.
- Click History in the menu bar.
- Look for Reopen All Windows from Last Session (if available).
This option appears only if Safari has a saved session. If it doesn’t, your last resort is the History menu’s full browsing history—find the page by date and click it. This won’t restore the tab’s position or form data, but it gets you back to the page.
Frequently Asked Questions
Can I reopen a tab I closed yesterday?
No, not directly. The Recently Closed list only covers the current session. However, you can find the page in your browsing history (History > Show All History) and click it to revisit it. It will open in a new tab, not the original one.
Does reopening a tab count as a new visit?
Yes, it reloads the page, so the website sees a new request. If the site uses cookies, you may be logged in again automatically, but any unsaved form data is lost.
Why does Shift + Command + T sometimes open a new window instead of a tab?
If you’ve closed a window (not just a tab), the shortcut reopens the entire window. This is normal behavior—the shortcut works for both tabs and windows, depending on what was closed last.
Can I increase the number of tabs shown in Recently Closed?
No, Safari doesn’t offer a setting for that. The list is managed internally and typically holds around 10–20 items. If you need more, consider using a tab manager extension or bookmarking important pages.
Does this work in Safari on older macOS versions?
Yes, the Shift + Command + T shortcut and the History > Recently Closed menu have been available since macOS Lion (10.7) and remain in current versions. The exact number of saved tabs may vary slightly.
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
- Tongue Escape Codes: What They Are0.20 movements/s
- Claude Code Workflow Habits Worth Trying
- HDMI 2.1 Explained: Why It Matters for Gaming
- Veeam Plugin for VMware Cloud Director: How It Works
- Best Path of Titans Server Hosting: Top Picks
- Oppo First Foldable: 120Hz Display & Snapdragon 888