The quickest way to get your tab back

The fastest way to reopen your last closed tab is to press Ctrl+Shift+T on Windows or Cmd+Shift+T on Mac. This keyboard shortcut works in Chrome, Firefox, Edge, and Safari. One press brings back the single tab you just closed. Press it again and it reopens the second-to-last tab, then the third, and so on — you can recover multiple tabs this way if you closed several at once.

If you closed an entire window instead of a single tab, use Ctrl+Shift+N on Windows or Cmd+Shift+N on Mac to reopen the last window you closed. This restores all the tabs that were open in that window.

Key Takeaways

  • Press Ctrl+Shift+T (Windows) or Cmd+Shift+T (Mac) to reopen your last closed tab instantly.
  • Pressing the shortcut multiple times restores tabs in reverse order — the most recent closes first.
  • Use Ctrl+Shift+N or Cmd+Shift+N to reopen an entire window with all its tabs at once.
  • The browser's undo feature only works for tabs closed in the current session, not after you restart the browser.

Using the browser menu if you prefer clicking

If you do not remember the keyboard shortcut, you can reopen a closed tab through the menu. In Chrome, click the three-line menu icon in the top right, then hover over "History" and select "Reopen closed tab." In Firefox, click the menu icon (three horizontal lines), go to "History," then "Recently Closed Tabs," and pick the tab you want. Edge and Safari have similar menu paths under History.

This method is slower than the keyboard shortcut but shows you a list of recently closed tabs so you can pick a specific one instead of reopening them in order.

Right-clicking the tab bar for a faster menu option

Most browsers let you right-click in the empty space of the tab bar (the area next to your open tabs) to see a context menu with "Reopen closed tab" as an option. This is faster than going through the full menu but still requires a mouse. The keyboard shortcut remains the quickest method.

In some browsers, you can also right-click on the back button to see a dropdown of recently closed tabs, though this varies by browser version.

How many closed tabs your browser remembers

Most browsers keep a history of 10 to 25 recently closed tabs, depending on the browser and your settings. Chrome typically remembers about 10 tabs. Firefox stores more — usually around 20. You can keep pressing Ctrl+Shift+T until you reach the limit, at which point the shortcut will stop working because there are no more closed tabs to restore.

Once you close the browser completely and reopen it, the list of recently closed tabs is usually cleared. Some browsers offer settings to restore your entire session when you restart, but that is a separate feature from the undo function.

What happens if you close a tab by accident in a private or incognito window

The undo shortcut works the same way in private browsing mode — Ctrl+Shift+T or Cmd+Shift+T will still reopen your last closed tab. However, once you close the private window entirely, those tabs are gone for good. Private browsing does not save history, so the browser cannot restore tabs after the window closes.

If you regularly close tabs by accident in private mode, consider using a regular window instead, or be more careful with the close button.

Preventing accidental closes in the first place

If you find yourself closing tabs by mistake often, some browsers offer a "warn before closing multiple tabs" setting. In Chrome, go to Settings > Advanced > Tabs and turn on "Warn before closing multiple tabs." Firefox has a similar option under Preferences > Tabs. This adds a confirmation dialog when you try to close multiple tabs at once, which can prevent accidents.

Another approach is to use tab groups or bookmarks for tabs you want to keep. Chrome's tab groups let you color-code and organize tabs so important ones are less likely to be closed accidentally. Bookmarking a tab you think you might close later is also a reliable backup.

Frequently Asked Questions

Can I reopen a tab I closed days ago?

No. The browser only remembers tabs closed in the current session. Once you close the browser and reopen it, that history is cleared. If you need to return to a page from days ago, check your browser's full history (usually Ctrl+H or Cmd+Y) instead, which keeps records for weeks or months depending on your settings.

Does the undo shortcut work if I close a tab by mistake while typing?

Yes. Ctrl+Shift+T or Cmd+Shift+T works regardless of what you were doing when you closed the tab. The browser does not distinguish between accidental and intentional closes — it just restores the most recently closed tab.

What if I closed a tab and then opened a new one — can I still get the old tab back?

Yes. Opening a new tab does not clear the list of recently closed tabs. The undo shortcut will still work and bring back the tab you closed earlier, even if you have opened other tabs since then.

Does this work the same way on mobile browsers?

Mobile browsers do not have the same keyboard shortcuts. On iPhone Safari, swipe left on the tab bar to see recently closed tabs, then tap the one you want. On Android Chrome, tap the tab switcher icon and look for a "Recently closed" section at the bottom of the tab list.