Open your tab bar right now and count. If you stopped somewhere past twenty, you already know why you’re here. The fastest way to close all tabs at once has nothing to do with clicking the little x button dozens of times. It’s about closing the window, not each tab.
Every major browser builds this in, but the exact click or tap differs enough between Chrome, Firefox, Safari, and your phone that it’s easy to end up in the wrong menu. Worse, closing everything at once feels risky: what if one of those forty tabs had something you needed?
This guide walks through the fastest way to close all tabs in every browser and device you’re likely using, how to close just the incognito ones, and what to do when you want a clean slate without gambling on losing something important.
How Do I Close All Tabs at Once?
The fastest way to close all tabs at once is to close the whole window, not each tab one by one. In Chrome, Edge, Firefox, and Brave on Windows or Linux, that’s Ctrl + Shift + W; on a Mac it’s Cmd + Shift + W. Safari on Mac and the mobile browsers work a little differently, which is where most of the confusion comes from.
Here’s the short version for whatever you’re using right now.
| Browser / situation | Fastest way to close all tabs |
|---|---|
| Chrome, Edge, Brave (Windows/Linux) | Ctrl+Shift+W, or Alt+F4 |
| Chrome, Edge, Brave (Mac) | Cmd+Shift+W |
| Firefox (Windows/Linux) | Ctrl+Shift+W, or Alt+F4 |
| Firefox (Mac) | Cmd+Shift+W |
| Safari (Mac) | Option-click the tab to keep, or Control-click a tab and choose Close Other Tabs |
| Safari or Chrome (iPhone) | Open the tab switcher and use its close-all option |
| Incognito or private window | Close it the same way you’d close a normal window |
Notice the pattern: every desktop browser treats “close all tabs” as really meaning “close this window,” because a browser window is just a container for tabs. There’s no single native button that closes every tab across every open window at once. You’d close each window separately. Chrome, Edge, and Firefox all group tabs by window for exactly this reason, and it’s worth knowing before you go hunting for a menu option that doesn’t exist.
Tab groups complicate the pattern a little. In Chrome, Edge, and Brave, right-click a tab to add it to a group, then click the group’s colored circle to collapse it out of view — collapsing isn’t closing, so those tabs are still open and still get swept up if you close the whole window. If you want one topic’s worth of tabs gone without touching the rest, closing the group itself, not just collapsing it, is the move.
The sections below cover each browser and situation in more detail, including how to close all tabs without losing anything you had open.
How Do I Close All Tabs in Chrome, Edge, or Brave?
Press Ctrl + Shift + W (Cmd + Shift + W on Mac) and every tab in that window closes at once — Chrome, Edge, and Brave all use the same shortcut, since they’re built on the same underlying browser engine.
- Click into the window you want to clear. Make sure it’s the active window — the shortcut only closes the tabs inside the window that’s currently focused.
- Press the shortcut. Ctrl+Shift+W on Windows and Linux, Cmd+Shift+W on Mac, closes the window and every tab in it in one go. Alt+F4 works as an alternative on Windows.
- Repeat for other windows. If you’ve got several browser windows open, each one closes separately. There’s no single shortcut that reaches all of them at once.
If you only want to clear part of the window, right-click any tab for options like Close tabs to the right, which trims everything after the tab you clicked. Chrome’s tab menu includes this, though it isn’t something Google writes up in its own help pages. You can also select several tabs first (Ctrl-click each one, or click the first and Shift-click the last) then right-click the selection and close them together. That’s the answer to how do I close tabs when you want to keep a few and ditch the rest, without closing the whole window.
Closing a tab group works differently from either of those. Right-click the group’s circle or name and choose to close the group, and every tab inside it closes together while the rest of the window stays open. If you’re signed in with tab and history sync on, that closed group gets saved rather than deleted, appearing on the bookmarks bar or menu instead of vanishing the way an ordinary closed tab does.
How Do I Close All Tabs in Firefox?
Firefox uses the same shortcut as Chrome — Ctrl + Shift + W on Windows and Linux, Cmd + Shift + W on Mac — to close the current window and every tab inside it, with Alt + F4 as an alternative on Windows.
Firefox also has its own version of the selective trick. Right-click any tab and open Close Multiple Tabs, which gives you Close Tabs to the Right, Close Tabs to the Left, or Close Other Tabs — handy when you want to keep one or two tabs from a big window instead of starting completely over. It’s one of the more useful right-click menus in any browser, because you don’t have to select anything first. See Firefox’s own keyboard shortcuts for the full list.
If your extra tabs are already organized into a Firefox tab group, you don’t need to close the whole window to get rid of them. Right-click the group’s label and close the group along with every tab inside it — often a cleaner way to tidy up than closing everything and starting from scratch. Our Firefox shortcuts guide covers the rest of Firefox’s tab commands, including how groups behave.
Firefox View is worth a glance before you close a window you’re not fully sure about. It lists your open and recently closed tabs, plus tabs from other devices you’ve synced, in one place — though it isn’t available inside private windows, so it won’t help you review a private session on its way out.
How Do I Close All Tabs in Safari?
Safari on Mac doesn’t use a Ctrl+Shift+W-style shortcut for closing every tab in a window. Instead, you close the tabs you don’t want and keep the one you do, or close the window outright — which is also the answer if you searched how to close all tabs safari and expected a single keystroke.
- Decide which tab to keep, if any. Safari’s fastest option closes every tab except one.
- Option-click the tab you want to keep. Hold Option and click that tab, and every other tab in the window closes immediately.
- Or Control-click a tab you don’t want. Choose Close Other Tabs from the menu that appears — same result, different starting point.
- Press Cmd+W to close the last window. That closes the frontmost window. To close every Safari window at once, press Option+Cmd+W instead.
Safari skips the usual shortcut. If you’re used to Ctrl+Shift+W from Chrome or Firefox, don’t expect the same combination in Safari. It isn’t how to close all tabs in Safari. Option-click or Control-click is the fastest route here. See Apple’s own guide on closing tabs in Safari for the full rundown.
Notice there’s no menu item anywhere in Safari’s interface labeled simply “close all tabs.” The nearest built-in option, Close Other Tabs, requires you to right-click or Control-click a specific tab first, which is why so many people go looking for a keyboard shortcut that doesn’t exist rather than the tab-first click Safari actually expects.
How Do I Close All Tabs on iPhone (Safari and Chrome)?
Both Safari and Chrome on iPhone let you close every open tab from the tab-count button at the bottom of the screen, though the exact tap sequence has shifted across iOS updates — which is exactly why how to close all tabs iphone is one of the most searched versions of this question.
Tap the tabs icon (the overlapping squares) to open the tab grid, then look for an overflow or tab-count option that offers a close-all action. Because Apple and Google both tweak this fairly often, we keep a dedicated, regularly updated walkthrough with the exact taps for your iOS version rather than repeat it here: see how to close all tabs on iPhone for Safari and Chrome side by side. If you searched iphone safari close all tabs specifically, that guide is the one to open.
If you only want to clear one topic’s worth of tabs and keep the rest, iPhone Safari’s tab groups can help. Touch and hold a tab, tap Move Tab, then New Tab Group, and you can close that whole group later without touching your other tabs — a smaller move than closing everything on your phone at once.
Switching between tab groups on iPhone happens from the bottom center of the screen, so if closing everything feels drastic, moving the tabs you want to keep into their own group first, then closing just the group you’re done with, is a gentler middle ground than clearing the whole tab grid.
BelayTab doesn’t cover iPhone or Android. BelayTab runs on desktop browsers (Chrome, Edge, Brave, Opera, Vivaldi, Arc, Firefox, and Safari on Mac) but not on iPhone, iPad, or Android. If you close all your tabs on your phone, our iPhone tab-closing guide and our guide to restoring closed tabs in Safari on iPhone are what you’ve got.
How Do I Close All Incognito Tabs?
Closing all incognito or private tabs works exactly like closing a regular window — Ctrl + Shift + W (Cmd + Shift + W on Mac) closes an Incognito window in Chrome, Edge, and Brave, and the equivalent private-window shortcut works the same way in Firefox.
The one thing worth knowing about closing incognito tabs specifically: once that window is gone, it’s gone. Private and incognito modes are built to leave no trace once you close them, so there’s no history entry, no Ctrl+Shift+T to bring the window back, and no “recently closed” list to check. That’s the whole point of the mode (a feature, not a bug) but it also means double-checking before you close all incognito tabs with something important still open is a habit worth building.
Incognito closes for good. There’s no undo for an incognito or private window once it’s closed. If you’re mid-purchase or halfway through a form in one, finish or copy what you need before you close the whole window.
On iPhone, Safari’s Private tab group behaves the same way: close it and its tabs the way you would any other tab group, and none of them come back. Our guide to how incognito tabs work covers what does and doesn’t get saved across every browser.
If you’re not sure what’s still open in an incognito window, take a second look before closing it. There’s no reading list, no history entry, and no bookmarks trail left behind in private mode, so whatever wasn’t copied or downloaded before you close the window is genuinely gone, not just hidden somewhere you can search for it later.
Can I Close All Tabs Without Losing Them?
Yes, but only within limits: your browser’s built-in reopen shortcut covers accidental closes in the current session, and not much more.
Ctrl+Shift+T works while the browser is still running since you closed the tab — reopen it, and the window comes back exactly as it was. What it doesn’t cover is a browser restart, a crash, or a window you closed on purpose last week and now want back. The History menu lists recently closed tabs a little further back, but it’s still bounded by the same session and by how much history your browser keeps.
- You closed it by accident just now. Ctrl+Shift+T (Cmd+Shift+T on Mac) brings the last closed tab or window straight back.
- The browser crashed or you restarted it. The built-in shortcut usually can’t reach that far — see our guide on restoring tabs in Chrome after closing or crashing.
- You closed everything on purpose, then needed one tab back next week. Browser history isn’t built for that; you need something that saved the session.
- You’re switching to a new computer. Native “recently closed” lists don’t travel with you — a saved, exportable session does.
This is exactly the gap BelayTab closes. It snapshots every open window automatically (every five minutes, and again the instant a window closes) so closing all your tabs, on purpose or by accident, never means starting over. Saving a session yourself takes one click or Ctrl+Shift+S, and restoring it brings back every tab, tab group, and pinned tab where it was.
Chrome’s reading list is worth knowing about too, for a narrower version of this problem. It’s a separate saved-for-later list from bookmarks, built for exactly the “I don’t want to lose this article but I don’t need the tab open” situation — saving a page there before you close the window keeps that one link without needing a full session save.
What’s the Difference Between Closing a Tab and Closing a Window?
Closing a tab removes just that page; closing a window removes every tab inside it at once — and mixing the two up is the most common reason people ask how do I close tabs and get a one-at-a-time result instead.
Ctrl+W closes a single tab (Ctrl+F4 does the same on Windows and Linux). Ctrl+Shift+W closes the whole window and everything in it. It’s a small distinction, but it explains almost every “why won’t this close all my tabs” moment.
| Action | Windows / Linux | Mac |
|---|---|---|
| Close one tab | Ctrl+W or Ctrl+F4 | Cmd+W |
| Close the window (all its tabs) | Ctrl+Shift+W or Alt+F4 | Cmd+Shift+W |
| Reopen last closed tab or window | Ctrl+Shift+T | Cmd+Shift+T |
| Search open tabs | Ctrl+Shift+A | Menu-based |
| Bookmark all open tabs | Ctrl+Shift+D | Cmd+Shift+D |
These are Chrome’s own documented shortcuts, and Edge and Brave match them since they share the same engine. If you’re clicking each tab’s x one at a time to clear a window, that’s the slow way — the window shortcut or the multi-select trick from earlier in this guide will always be faster.
If you’re closing tabs purely to speed things up rather than because you’re done with them, it’s worth checking what’s slow first. Chrome’s Task Manager, opened with Shift+Esc on Windows and Linux, lists every tab and extension with live memory numbers, so you can see whether one runaway tab is the real problem before you close two dozen tabs you still needed.
Why Do My Tabs Keep Coming Back After I Close Them?
If your tabs reopen the moment you relaunch the browser, check your startup setting — Chrome, Edge, and Brave can be set to Continue where you left off, which reopens your last session automatically every time you open the app.
That setting lives under Settings > On startup, and it’s the single most common reason people feel like closing all tabs “didn’t work.” Our guide to Chrome’s startup pages walks through switching it to a blank or fixed set of pages instead. Sync can also be a factor: if you’re signed in with tab sync on, tabs open on one device can still show up as available on another, even after you’ve closed them locally. Our Chrome Sync guide explains exactly what does and doesn’t carry across devices.
It’s also worth ruling out Memory Saver here, since a deactivated tab keeps its title and favicon in the tab strip and can look, at a glance, like it never closed. That’s a different situation from the startup setting bringing tabs back — a deactivated tab was never closed in the first place, it just paused, and clicking it reloads the page rather than restoring anything.
How Do I Get Closed Tabs Back If I Change My Mind?
Press Ctrl + Shift + T (Cmd + Shift + T on Mac) right away, and Chrome, Edge, Brave, and Firefox all reopen the last tab or window you closed, exactly as it was.
- Act fast, in the same session. Ctrl+Shift+T works as long as you haven’t restarted the browser since closing.
- Check the History menu if the shortcut doesn’t cover it. It lists recently closed tabs and windows a little further back than the shortcut alone.
- Reach for BelayTab’s Recovery screen for anything older. It combines your automatic snapshots, deleted sessions, and the browser’s own recently closed list in one place, so you’re not hunting across three menus.
BelayTab’s Recovery screen is built for exactly this moment: the tabs you closed a minute ago, the session you deleted last month and want back from the 30-day trash, and any window your browser itself still remembers, all in one list instead of three. It works alongside the browser’s own tools rather than replacing them — Ctrl+Shift+T is still the fastest option for something you closed thirty seconds ago.
How far back the History menu reaches depends on your browser and how much you’ve browsed since, so don’t assume it goes back indefinitely. Chrome’s own shortcut is documented for the single most recent close, with the History menu picking up a limited stretch beyond that — not a searchable archive of everything you’ve ever closed.
