The fastest way to get your 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 Cmd+Shift+T on Mac, and the tab you closed most recently will open again in the same position. If you close multiple tabs in a row and press the shortcut again, each press will reopen the next most recently closed tab, going backward through your history.

This works whether you closed the tab by clicking the X, using a keyboard shortcut, or closing the entire browser window. The browser remembers closed tabs for the current session, so you can recover them as long as you haven't shut down the browser completely. Once you restart your browser, the closed tab history is cleared and you cannot recover those tabs this way.

Key Takeaways

  • Press Ctrl+Shift+T (Windows) or Cmd+Shift+T (Mac) to reopen your most recently closed tab instantly.
  • Pressing the shortcut multiple times reopens tabs in reverse order, so you can recover several closed tabs one after another.
  • This shortcut works in Chrome, Firefox, Safari, and Edge, and recovers tabs closed during your current browser session only.
  • If you close the browser completely and restart it, closed tabs cannot be recovered using this method.

Using the right-click menu if you prefer the mouse

If you do not want to use the keyboard shortcut, you can reopen a closed tab through the browser menu. Right-click on any open tab or on the empty space next to your tabs, and look for an option that says "Reopen closed tab" or "Restore tab." Click it, and your most recently closed tab will reopen.

This method is slower than the keyboard shortcut, but it works the same way. If you right-click again and select the option a second time, it will reopen the next most recently closed tab. The menu option is useful if you are already using the mouse and do not want to reach for the keyboard.

Recovering tabs from a closed window

If you closed an entire browser window by accident instead of just a single tab, the keyboard shortcut still works. Press Ctrl+Shift+T (or Cmd+Shift+T on Mac) and the entire window will reopen with all the tabs that were open in it. This is one of the most useful features of the shortcut, because closing a whole window feels like a bigger mistake than closing one tab.

The browser will restore the window in the same position on your screen where it was before you closed it. All the tabs will be in the same order they were in before. If you had multiple windows open and closed one of them, pressing the shortcut will reopen the most recently closed window first.

What happens if you cannot find the shortcut in your browser

If the keyboard shortcut does not work, check whether your browser is set to clear closed tabs when it closes. Some browsers have a setting that deletes the closed tab history automatically for privacy reasons. Open your browser settings and search for "closed tabs" or "history" to see whether this feature is turned on.

You can also try accessing closed tabs through the browser's main menu. In Chrome and Edge, click the three-line menu icon in the top right corner and look for "Reopen closed tab." In Firefox, click the menu icon and select "History," then look for "Recently Closed Tabs." In Safari on Mac, click the "History" menu at the top of the screen and select "Reopen Last Closed Tab."

Why the shortcut stops working after you restart

When you close your browser completely and open it again, the list of closed tabs is erased. This is by design — browsers do not keep a permanent record of tabs you closed in previous sessions. If you need to get back to a website you closed before restarting your browser, you will need to use your browser history instead.

To find a site you visited before, open your browser history by pressing Ctrl+H (Windows) or Cmd+Y (Mac). You can search for the website by name or browse by date. This will show you every site you visited, not just the ones you closed recently, so it is useful if you remember roughly when you visited the page.

Preventing accidental tab closures

If you find yourself closing tabs by accident often, you can make it harder to close a tab by accident. In Chrome and Firefox, you can right-click on a tab and select "Pin tab" or "Pin this tab." A pinned tab will not close when you click the X button — you have to unpin it first. This is useful for tabs you visit every day and do not want to lose.

Another option is to use your browser's undo feature more broadly. Many browsers let you undo the last action by pressing Ctrl+Z (Windows) or Cmd+Z (Mac), which will close a tab you just reopened if you change your mind. This works in the same session and gives you another layer of protection against mistakes.

Frequently Asked Questions

Can I reopen a tab I closed days ago?

No, the closed tab shortcut only works for tabs closed in your current browser session. Once you close the browser and reopen it, that history is gone. To find a site you visited days ago, use your browser history instead by pressing Ctrl+H or Cmd+Y and searching for the site name.

What if I closed multiple tabs at once and want to recover just one of them?

Press Ctrl+Shift+T (or Cmd+Shift+T) multiple times to reopen tabs one at a time in reverse order. Each press recovers the next most recently closed tab. Once you have reopened the one you wanted, you can close the others again if you do not need them.

Does this work the same way in all browsers?

Yes, Ctrl+Shift+T (Windows) and Cmd+Shift+T (Mac) work in Chrome, Firefox, Safari, and Edge. The shortcut is the same across all major browsers, so once you learn it, you can use it everywhere. Some browsers also offer the option through the right-click menu if you prefer not to use the keyboard.

Will pinning a tab prevent me from closing it by accident?

Yes, pinned tabs cannot be closed by clicking the X button. You must right-click the tab and select "Unpin" before you can close it. This is useful for tabs you visit every day, but it does not prevent you from closing the tab through other methods like closing the entire window.