The fastest way to get a closed tab back
If you closed a tab by accident, you can reopen it in seconds using a keyboard shortcut. In Chrome, Firefox, Safari, and Edge, press Ctrl+Shift+T on Windows or Command+Shift+T on Mac. This restores the tab you closed most recently, and you can press it again to bring back earlier tabs in reverse order — the second-to-last tab you closed comes back next, then the third-to-last, and so on.
This works even if you closed multiple tabs at once or closed the entire browser window. The shortcut remembers your last several closed tabs, though the exact number varies by browser — most keep between 10 and 25 tabs in the history. Once you close a tab and then open a new one, the oldest closed tabs start to drop off the list.
If you closed a tab more than a few minutes ago and cannot remember which one it was, or if you have already closed other tabs since then and pushed it out of the recent history, you will need to use your browser's history instead of the keyboard shortcut.
Key Takeaways
- Press Ctrl+Shift+T (Windows) or Command+Shift+T (Mac) to reopen the tab you just closed, and press it again to restore earlier tabs in reverse order.
- This shortcut works even if you closed the entire browser window, as long as you have not opened a new tab since then.
- Browsers keep between 10 and 25 closed tabs in memory before they disappear permanently.
- If the tab is no longer in the recent history, open your browser history and search for the website name or the date you visited it.
- Pinning important tabs prevents them from closing by accident when you close other tabs.
Using your browser history when the shortcut does not work
If you closed a tab too long ago for the keyboard shortcut to find it, open your browser history. In Chrome, Firefox, and Edge, press Ctrl+H on Windows or Command+Y on Mac. In Safari, press Command+Y. A sidebar or new tab opens showing all the websites you have visited, usually sorted by date.
Look for the website name or the date you remember visiting it. If you remember roughly when you closed it — this morning, yesterday, last week — click that time period to narrow the list. Once you find the site, click it to open it in a new tab. You will be on the current version of the page, not a saved copy from when you closed it, so if the page has changed you will see the new version.
If you do not remember the website name or the date, try searching within the history. Most browsers have a search box at the top of the history panel. Type a word you remember from the page title or URL — a product name, a person's name, or a topic — and the browser will filter the history to show only matching sites.
Recovering a tab from a closed browser window
If you closed the entire browser window by accident, the keyboard shortcut still works. Open the browser again and when ready press Ctrl+Shift+T (Windows) or Command+Shift+T (Mac). The browser will restore the last window you had open, including all the tabs that were in it.
This works because browsers keep a record of your last session — the tabs and windows you had open before you closed the program. The session record usually stays available for several hours or until you manually clear your browsing data. If you have already opened new tabs or windows since closing the browser, the session may no longer be available, but the keyboard shortcut will still restore the most recent closed tab.
If the session restore does not work, go to your browser history and look for the sites you had open. You will need to open them one at a time, but at least you can find them again.
Pinning tabs so they do not close by accident
If you have tabs you visit every day or do not want to lose, pin them to your browser. Right-click on the tab and select Pin tab (the wording varies slightly by browser, but the option is always in the right-click menu). A pinned tab shrinks to show only its icon and stays at the left side of your tab bar, separate from your other tabs.
Pinned tabs do not close when you close other tabs, and they reopen automatically the next time you start the browser. They also do not get closed by the keyboard shortcut — if you press Ctrl+Shift+T, you will restore unpinned tabs instead. This makes pinning useful for sites you use constantly, like email or a project management tool, because they stay in place while you open and close other tabs around them.
To unpin a tab, right-click it again and select Unpin tab. The tab will then behave like any other tab and can be closed or closed by accident.
Why browsers close tabs and what you can do about it
Tabs close for a few reasons: you close them intentionally, you close the browser window, or occasionally a browser crash or a website error closes them without warning. The keyboard shortcut handles the first two. For the third — unexpected crashes — some browsers offer a recovery feature that appears when you restart after a crash.
Chrome, Firefox, and Edge all have settings to restore your previous session automatically when you start the browser. In Chrome, go to Settings > On startup and select Continue where you left off. In Firefox, go to Settings > Home and under Tabs select Restore previous session. In Edge, go to Settings > On startup and select Restore previous sessions. With this setting on, your tabs reopen automatically every time you start the browser, so you never lose them even if you close the window by accident.
The trade-off is that your browser will take slightly longer to start because it has to reload all those tabs. If you prefer a faster startup, leave this setting off and rely on the keyboard shortcut when you need to recover a tab.
Recovering tabs from a synced account
If you use the same browser account across multiple devices — a phone, a tablet, and a computer — your closed tabs may be available on your other devices. This works because browsers sync your history across devices when you sign in with your account.
On the device where you still have the tab open, or on another device where you have not closed it yet, you can see the tab in your history. Open your history on that device and look for the site. If you have a phone or tablet where you did not close the tab, you can open it there and keep it open while you search for it on your computer.
This is not a may provide recovery method — syncing takes time, and if you closed the tab on one device it may have already synced to your other devices. But if you closed a tab on your computer and remember that you had the same site open on your phone, checking your phone's history is faster than searching your computer's history.
Frequently Asked Questions
Can I recover a tab I closed days ago?
Not with the keyboard shortcut — that only works for tabs closed in the last few minutes. But you can find it in your browser history if you remember the website name or roughly when you visited it. Open your history, search for the site name, and click it to reopen it. The page will show its current version, not a saved copy from when you closed it.
What if I closed multiple tabs at once?
Press the keyboard shortcut multiple times. Each time you press Ctrl+Shift+T (or Command+Shift+T on Mac), the browser restores one more closed tab in reverse order — the most recent one first, then the second-most recent, and so on. Stop when you have brought back all the tabs you need.
Does pinning a tab prevent it from being closed?
Pinning prevents a tab from closing when you close other tabs, but you can still close a pinned tab manually by right-clicking it and selecting close. Pinned tabs do reopen automatically the next time you start the browser, so even if you close one by accident, it comes back when you restart.
Will the keyboard shortcut work if I restart my computer?
It depends on your browser settings. If you have set your browser to restore your previous session on startup, your tabs will reopen automatically when you start the browser again. If not, the keyboard shortcut will only work if you open the browser and press it before you open any new tabs.
Can I recover a tab from a private or incognito window?
No. Private and incognito windows do not keep a history of closed tabs or browsing history. Once you close a tab in a private window, it is gone permanently. If you need to keep a tab open, do not use a private window.