Tired of clicking again and again (sometimes on a moving target…) to close a long row of tabs? Seeking to free up memory and resources spent on background tabs in Safari? Find out here how to close all tabs in Safari on a Mac ⤓ fast — in the current window, in all windows, to the left or to the right.
On This Page
How to Close All Tabs in Safari on a Mac
In the Current Browser Window
Time needed: 1 minute
To quickly close all open tabs in current Safari for Mac browser window:
- Make sure the window with the open tabs you want to close is in the foreground.
Bring it to the forefront: You can always click in the Safari window’s title bar or select Window | <Page name> from the menu.
- Press Command Shift W.
Here’s what happens: This will close the current window with all its open tabs; other open windows (and their tabs) will not be affected.
Menu alternative: You can also select File | Close Window from the menu in Mac Safari to close all tabs.
Away with everything: See below for closing all tabs in all open Safari windows.
Back in blissful no-tab land?
Tips help fuel these email and tech how-tos.
Close All Other Tabs
You can also close all other — or select — tabs while you keep the current tab open.
How to Close All Tabs in Safari on a Mac: FAQ
Can I also close all tabs in all open windows?
Yes.
To close all tabs in all open Safari browser windows (without immediately quitting Safari itself):
- Press Command Option Shift W.
Here’s what happens: This will close all browser tabs and windows but not quit Safari.
Menu alternative: You can also select File | Close All Windows from the menu.
Quit Safari for Mac: Quitting Safari (with Command Q) will also close all windows, of course; with this command, they will automatically re-open if you start Safari again, though, if Safari is set up to do so.
An alternative is quitting Safari, of course; here, Safari will remember the open windows, though, and reopen them when you launch it again.
(Tested with Safari 15.0–18.6; first published October 2021, last updated September 2025)