The fastest way to close all Safari tabs

Safari does not have a single "close all tabs" button in the menu. Instead, you close all tabs by closing the window itself, or by using a keyboard shortcut that works differently depending on whether you have multiple windows open. If you want to keep Safari running but clear out your tabs, the quickest method is to use Command + Option + W, which closes all tabs in the current window without closing Safari itself.

This shortcut works on Mac. If you are on iPad or iPhone, you will need to use the tab manager instead — swipe up from the bottom of the screen (or swipe down from the top-right corner on newer models) to see all open tabs, then tap "Edit" and select the tabs you want to close, or use the trash icon to close them in groups.

Key Takeaways

  • On Mac, press Command + Option + W to close all tabs in your current Safari window without closing Safari itself.
  • On iPad and iPhone, open the tab manager by swiping, tap Edit, and then tap the trash icon or select individual tabs to close them.
  • If you close the Safari window entirely, all tabs in that window close automatically, but Safari remains open in the background.
  • You can also right-click a tab and choose "Close Other Tabs" to keep just one tab open and close everything else.

Using the keyboard shortcut on Mac

The keyboard shortcut Command + Option + W closes every tab in your current Safari window. This is the fastest way if you have many tabs open and want to start fresh. Hold down the Command key and the Option key at the same time, then press W while holding both.

If you have multiple Safari windows open, this shortcut only closes the tabs in the window you are currently viewing. The other windows and their tabs stay open. If you want to close tabs in a different window, click that window first to make it active, then use the shortcut again.

Closing tabs on iPad and iPhone

On iPad, swipe up from the bottom of the screen to open the tab manager. On iPhone, swipe down from the top-right corner (or swipe up from the bottom on older models). You will see all your open tabs displayed as cards.

Tap the word "Edit" in the bottom-right corner of the tab manager. Once Edit mode is active, you can tap individual tabs to select them, or tap "Close All" if that option appears. On some versions of iOS and iPadOS, you may see a trash icon — tap it to close the selected tabs. If you do not see a "Close All" button, select all visible tabs by tapping each one, then look for a close or trash option.

Closing all tabs by closing the window

If you close the Safari window itself, all tabs in that window close automatically. Use Command + W to close the active window, or go to the Safari menu and select "Close Window." This closes the window and all its tabs, but Safari continues running in the background.

This method is useful if you want to completely clear out a set of tabs but do not want to quit Safari entirely. When you open Safari again, it will not automatically reopen those tabs unless you have Safari set to restore your previous session — you can change this in Safari Preferences under the General tab.

Closing all tabs except one

If you want to keep just one tab open and close everything else, right-click (or Control-click) on the tab you want to keep. A menu will appear with the option "Close Other Tabs." Click that option and Safari will close every tab except the one you selected.

This is faster than selecting and closing tabs individually when you have many open. The tab you selected stays in place, and you can continue from there without losing your place.

What happens to your closed tabs

Once you close tabs using any of these methods, they are gone. Safari does not keep a list of recently closed tabs the way some other browsers do. If you close a tab by accident and need to get back to that page, you will need to search for it again or check your browser history.

To view your history, press Command + Y on Mac, or go to the Safari menu and select "Show History." You can search for the site by name or scroll through your recent browsing. This will not restore the tab itself, but it will take you back to the page.

Preventing tabs from reopening when you restart Safari

By default, Safari may reopen your tabs when you launch it again, depending on your settings. If you want Safari to start with a blank slate every time, go to Safari menu, then Preferences (or Settings on newer Macs), and click the General tab. Under "Safari opens with," select "A new window" or "Start page" instead of "All windows from last session."

This ensures that when you close all your tabs and then quit Safari, those tabs will not automatically reopen the next time you launch the browser. You will start fresh each time.

Frequently Asked Questions

Can I undo closing all my tabs?

No, Safari does not have an undo function for closed tabs. Once you close them, they are gone. If you need to return to a page you closed, check your history by pressing Command + Y on Mac, or use the Safari menu to view your browsing history.

Will closing all tabs close Safari itself?

No. Using Command + Option + W closes all tabs in the current window but keeps Safari running. If you want to quit Safari entirely, use Command + Q or go to Safari menu and select "Quit Safari."

How do I close tabs on iPhone without using the tab manager?

You must use the tab manager to close tabs on iPhone. Swipe down from the top-right corner to open it, tap Edit, and then select the tabs you want to close. There is no keyboard shortcut for iPhone or iPad.

What if I have multiple Safari windows open?

Command + Option + W only closes tabs in the window you are currently viewing. Click the other window to make it active, then use the shortcut again if you want to close its tabs too. To close all Safari windows at once, use Command + Q to quit Safari entirely.

Can I close tabs automatically at a certain time?

Safari does not have a built-in feature to close tabs automatically on a schedule. You would need to close them manually using the methods described, or use a third-party tool or extension if one is available for your needs.