The fastest way to get a closed tab back

If you just closed a tab by accident, you can reopen it in seconds using a keyboard shortcut that works the same way in every major browser. Press Ctrl+Shift+T on Windows or Command+Shift+T on Mac, and the tab you most recently closed will open again in the same position. This works even if you closed the entire browser window — the shortcut will restore the last tab or window you had open.

The shortcut restores tabs in reverse order, so if you closed three tabs in a row, pressing it three times will bring all three back. Each press goes one step further back through your closed tabs. This is faster than hunting through menus, and it works whether you closed the tab by clicking the X, using a keyboard shortcut, or closing the whole window.

Key Takeaways

  • Press Ctrl+Shift+T (Windows) or Command+Shift+T (Mac) to reopen the tab you just closed, even if you closed the whole browser.
  • The shortcut works in Chrome, Firefox, Safari, and Edge, and restores tabs in reverse order of when you closed them.
  • If you closed multiple tabs, pressing the shortcut again will restore the next most recent closed tab.
  • Right-clicking the back arrow in your browser also shows recently closed tabs, which is useful if you closed a tab more than a few minutes ago.

Using the browser menu if the shortcut does not work

If the keyboard shortcut does not work on your computer, you can reopen a closed tab through the menu. In Chrome, Firefox, and Edge, click the three horizontal lines (menu button) in the top right corner, then look for "Reopen closed tab" or "Recently closed". In Safari on Mac, click the Safari menu at the top of the screen and select "Reopen Last Closed Tab".

The menu route is slower than the keyboard shortcut, but it shows you a list of recently closed tabs so you can pick the exact one you want instead of restoring them one at a time. This is helpful if you closed several tabs and only need one specific page back.

Finding a tab closed more than a few minutes ago

The keyboard shortcut and menu options only restore tabs from the last few minutes. If you closed a tab longer ago, you need to check your browser history instead. Press Ctrl+H on Windows or Command+Y on Mac to open your history, then search for the page by name or look through the list by date.

Your history shows every page you have visited, organized by when you visited it. You can search by typing a word from the page title, or scroll down to find the time period when you closed the tab. Clicking any page in the history will open it again in a new tab.

Recovering a closed tab after closing the whole browser

If you closed the entire browser window by accident, the keyboard shortcut Ctrl+Shift+T (or Command+Shift+T on Mac) will still work — it restores the last window you had open, including all the tabs that were in it. Open the browser again and press the shortcut when ready, and you will get back everything that was open.

This works best if you act quickly, before you open new tabs or windows. Some browsers also have a "Restore session" option that appears when you first open them after a crash or unexpected close. If you see that option, clicking it will bring back all your tabs from the last session.

Differences between browsers

The keyboard shortcut Ctrl+Shift+T works in Chrome, Firefox, Edge, and Opera on Windows, and Command+Shift+T works in Chrome, Firefox, and Edge on Mac. Safari on Mac uses Command+Z instead, which also undoes other recent actions like closing windows or deleting bookmarks, so be careful when using it.

If you use a less common browser, check the menu for a "Recently closed tabs" or "Reopen" option. Most browsers keep this feature in the main menu or under a History submenu. The exact location varies, but the feature exists in nearly every browser because it is so commonly needed.

Why the tab closed and how to prevent it

Tabs close when you click the X button on the tab itself, when you use the keyboard shortcut Ctrl+W (or Command+W on Mac), or when the browser crashes. If a tab keeps closing on its own, the page itself may be crashing — try opening it in a different browser to see if the problem follows it. If it only happens in one browser, you may have an extension that is interfering with that page.

To prevent accidental closes, some people use browser extensions that warn before closing a tab or prevent closing tabs with unsaved work. Chrome has extensions like "Prevent Accidental Tab Close" that add a confirmation dialog. Firefox has similar options. If you frequently close tabs by accident, installing one of these extensions can save you time, though the keyboard shortcut to undo the close is usually fast enough.

Frequently Asked Questions

Can I reopen a tab I closed yesterday?

The keyboard shortcut only works for tabs closed in the last few minutes. For older tabs, open your history with Ctrl+H (Windows) or Command+Y (Mac), search for the page by name, and click it to open it again. Your history keeps pages for weeks or months depending on your browser settings.

What if I closed multiple tabs and want them all back?

Press Ctrl+Shift+T (or Command+Shift+T on Mac) once for each tab you closed, in reverse order. Each press restores the next most recently closed tab. Alternatively, right-click the back arrow in your browser toolbar to see a list of recently closed tabs and click the ones you want.

Does the shortcut work if I closed the whole browser window?

Yes. Open the browser again and press Ctrl+Shift+T (Windows) or Command+Shift+T (Mac) when ready. The entire window with all its tabs will reopen. This works best if you do it right away, before opening new tabs.

Why does the keyboard shortcut not work in Safari?

Safari uses Command+Z instead of Command+Shift+T to undo closing a tab. Command+Z also undoes other actions like closing windows, so be careful. You can also go to the Safari menu and click "Reopen Last Closed Tab" if you prefer the menu option.

Can I see which tabs I closed without reopening them?

Yes. Right-click the back arrow button in your browser toolbar to see a dropdown list of recently closed tabs. This shows you what you closed without actually reopening anything, so you can pick the exact tab you want instead of restoring them one at a time.