How to reopen closed tabs in Firefox and get your last session back
Press Ctrl+Shift+T (Cmd+Shift+T on a Mac) and Firefox reopens the last tab or window you closed; press it again to keep going back. Right after Firefox starts, before you close anything, the same keys bring back your whole previous session.
| What you closed | Fastest way back |
|---|---|
| The tab you just closed | Ctrl+Shift+T, or right-click the tab bar > Reopen Closed Tab |
| A window | Ctrl+Shift+N (Cmd+Shift+N) |
| A tab from earlier today | History > Recently closed tabs |
| Everything, after a restart | History > Restore previous session |
| Everything, after a crash | The Restore Session page |
Reopen a closed tab
Firefox reopens tabs in the order you closed them, newest first. If you closed several at once, with Close Tabs to Right, Close Other Tabs or a selection, one press brings the whole batch back. With the mouse, right-click an empty part of the tab bar and choose Reopen Closed Tab.
To pick one tab from a list:
- Click the menu button and choose History > Recently closed tabs. On a Mac, the menu bar has the same list under History > Recently Closed Tabs.
- Click the tab you want, or Reopen all tabs at the bottom.
The list covers every window and is still there after a restart. Firefox’s defaults keep 25 closed tabs per window and forget closed tabs and windows after two weeks. For anything older, use History > Search history, or the History sidebar (Ctrl+H, Cmd+Shift+H on a Mac).
Reopen a closed window
Press Ctrl+Shift+N (Cmd+Shift+N on a Mac), or open History > Recently closed windows. It lists your last five windows by title, each with its number of tabs and the time you closed it, and ends with Reopen all windows.
Restore your previous session
If Firefox opened on the home page without your tabs, they’re still recoverable:
- Before you close any tab, press Ctrl+Shift+T, or click the menu button and choose History > Restore previous session. Every window from last time comes back.
- To have this happen at every start, open Settings > Home and startup and tick Open previous windows and tabs under Startup.
With that setting off, Firefox still reopens pinned tabs, keeps your tab groups in the List all tabs menu and lists your other tabs under Recently closed tabs.
After a crash
Firefox brings your tabs back by itself the next time it starts, even with the startup setting off. It shows the Restore Session page instead after two crashes in a row, or when you start it six hours or more after the crash. On that page, View Previous Tabs lets you untick a tab you suspect before you click Restore Session. If Firefox crashes again, Mozilla suggests Start New Session, then picking windows from History > Recently closed windows. Closed the page by mistake? Type about:sessionrestore in the address bar.
After an update
When Firefox restarts to finish an update, your windows and tabs should come back on their own. If they don’t, Mozilla points to Recently closed windows and Recently closed tabs in the History menu, then to the startup setting. On a Mac, Firefox 132 and later reopens by itself, tabs included, when macOS restarts after a system update or a shutdown, as long as Firefox was running at the time.
Restore tabs from a backup file
When about:sessionrestore is empty, Mozilla’s fix is to put an older copy of the session in place:
- Type
about:supportin the address bar and click Open Folder next to Profile Folder (Show in Finder on a Mac, Open Directory on Linux). - Copy the
sessionstore-backupsfolder to your desktop, then quit Firefox. - Move
sessionstore.jsonlz4out of the profile folder, to the desktop as well. - Copy a file from your copy of
sessionstore-backupsinto the profile folder and rename itsessionstore.jsonlz4. Mozilla says any of them should work; skip one that’s much smaller than the rest. Show file extensions in your file manager first, or the rename won’t take. - Start Firefox. If the tabs don’t open, use History > Restore previous session.
The folder holds recovery.jsonlz4, written while Firefox runs, plus older copies: recovery.baklz4, previous.jsonlz4 and up to three upgrade.jsonlz4- files from recent updates. The Microsoft Store version keeps its profile elsewhere (where Firefox bookmarks are stored has the path). For a longer record of sessions, Mozilla’s article recommends the Tab Session Manager add-on; our free session converter turns its exports into bookmarks.
Why Firefox didn’t restore your tabs
- Private windows are never restored, by design.
- Windows closed one by one. Only the last window you closed is restored. The others wait in Recently closed windows.
- History settings. In Settings > Privacy and security, under History, choose Remember history. With Customize history, make sure Always use private browsing mode is off and that Clear history when Firefox closes doesn’t include Browsing & download history.
- Tabs open blank or on the home page. Mozilla lists an extension, a change during an update or damaged session data as causes, and suggests Troubleshoot Mode, then resetting Firefox’s settings.
On Android and iPhone
In Firefox for Android, closing a tab shows a Tab closed message with UNDO. Later on, open the tab tray, tap the three-dot menu and choose Recently closed tabs. Private tabs can’t be reopened. Mozilla’s help for iPhone and iPad has no closed-tabs list; to find a page again, open the menu, choose History and search.
Questions
What is the shortcut to reopen closed tabs in Firefox?
Ctrl+Shift+T on Windows and Linux, Cmd+Shift+T on a Mac. Ctrl+Shift+N (Cmd+Shift+N) reopens the last window you closed.
How do I reopen closed tabs in Firefox on a Mac?
Press Cmd+Shift+T, or open History > Recently Closed Tabs in the menu bar at the top of the screen.
How do I restore Firefox tabs after a restart?
Click the menu button, then History > Restore previous session, or press Ctrl+Shift+T before you close any tab. Tick Open previous windows and tabs in Settings > Home and startup to make it automatic.
How do I restore tabs in Firefox after a crash?
Start Firefox again: it usually reopens the tabs by itself. If the Restore Session page appears, click Restore Session. If you closed that page, type about:sessionrestore in the address bar.
How do I reopen a closed tab in Firefox on Android or iPhone?
On Android, tap UNDO right after closing, or open the tab tray, tap the three-dot menu and choose Recently closed tabs. On iPhone and iPad, Mozilla only documents finding the page again in History.
Use Chrome or Brave as well?
Stackboard is a free extension for Chrome and Brave that turns the new tab page into a board of your own bookmarks. No account, nothing leaves your browser.
Add to Chrome, it’s freeSources
- Mozilla Support: Keyboard shortcuts, perform common Firefox tasks quickly
- Mozilla Support: Use tabs to organize lots of websites in a single window
- Mozilla Support: Tab context menu
- Mozilla Support: Restore previous session, configure when Firefox shows your most recent tabs and windows
- Mozilla Support: How do I restore my tabs from last time?
- Mozilla Support: How to restore a browsing session from backup
- Mozilla Support: Firefox macOS session resume feature
- Mozilla Support: Pinned Tabs, keep favorite websites open and just a click away
- Mozilla Support: Manage tabs in Firefox for Android
- Mozilla Support: Search your browsing history in Firefox for iOS
- Firefox Add-ons: Tab Session Manager
- Firefox source: Ctrl+Shift+T reopens the last closed tab or window, or the previous session (SessionWindowUI.sys.mjs)
- Firefox strings: the History panel, Recently closed tabs, Restore previous session (appmenu.ftl)
- Firefox strings: the menu bar History and Bookmarks menus (menubar.ftl)
- Firefox strings: the tab context menu (tabContextMenu.ftl)
- Firefox source: Recently closed tabs, deleted groups and Reopen all (RecentlyClosedTabsAndWindowsMenuUtils.sys.mjs)
- Firefox source: crash restores, pinned tabs and groups after a restart, tabs closed together (SessionStore.sys.mjs)
- Firefox source: the files in sessionstore-backups (SessionFile.sys.mjs)
- Firefox strings: the Restore Session page (aboutSessionRestore.ftl)
- Firefox source: default preferences such as max_tabs_undo, max_windows_undo and forget_closed_after (firefox.js)
- Firefox strings: Home and startup, Startup, Tabs and browsing, History settings (preferences.ftl)
- Firefox source: Recent tab groups and Show all in the List all tabs menu (GroupsList.sys.mjs)
- Firefox for Android strings: Select tabs, Recently closed tabs, Bookmarks saved in (strings.xml)