How to Close All Safari Tabs on iPhone

Clearing Safari on an iPhone can mean emptying one Tab Group, dropping a single tab, hiding private tabs or getting back a tab you closed too soon. For the big clear-out, Apple’s guide has a long press in the tab view that ends with Close All [number] Tabs, and it only empties the Tab Group on screen. Pick your job in the table below; every step follows Apple’s Safari guide for current iOS.

What do you want to clear?

“Close all tabs” can mean a few different jobs. Find yours in the table, then jump to that section.

What you want Where it happens Apple’s name for it
Every open tab in the group you are viewing Tab view, long press on the button that closes the tab view Close All [number] Tabs
Just one tab Tab view, the Close button on that tab Close button
Everything except a few tabs you still need Move the keepers to another group first, then close all Move Tab, New Tab Group
Private tabs nobody else should see Private Browsing, or a Face ID or Touch ID lock New Private Tab, Require Face ID to Unlock Private Browsing
A tab you closed by accident Tab view, long press on the New Tab button Recently closed tabs

Check which tab group you are in first

Safari can keep tabs in more than one Tab Group, and Apple’s close-all tip is scoped to “this Tab Group.” If you have a Work group and a Personal group, clearing one leaves the other untouched. That is useful, but it also explains the most common surprise: you close everything, then find a pile of tabs still waiting in another group.

  1. Open Safari and tap the Tabs button to open the tab view.
  2. Look at the bottom center of the screen. Apple’s guide says to tap the tab groups there to move between groups.
  3. Tap it to see the list of groups, then pick the one you want to clear.

Want to keep a handful of tabs and clear the rest? Apple documents moving a tab into a new group: in the tab view, touch and hold a tab, tap Move Tab, then tap New Tab Group. Move the tabs you still need, switch back to the cluttered group, and close everything left in it.

Clear every tab in the group from the tab view

  1. In Safari, tap the Tabs button. Your open tabs appear as a grid of thumbnails.
  2. Touch and hold the button you would tap to close the tab view. Apple’s iOS 18 guide names it Done; the current guide shows it as an icon instead of a word.
  3. Tap Close All [number] Tabs. The number tells you how many tabs are about to go, which is a handy last check that you are in the right group.

Once the group is empty, open a new tab to start fresh. If you use the Single Tab layout, Apple notes that menus and other items may look different from what its guide describes, so look for the same buttons in their new spots. The on-site walkthrough for showing the tab bar in Safari explains the layout choices.

To close only one tab instead, open the tab view and tap the Close button in the upper-right corner of that tab’s thumbnail.

The illustration below comes from an earlier version of this article and shows a different shortcut on an older layout. Apple’s guide documents the tab-view route above, and current screens may look different.

iPhone Safari with the tabs button held down and the Close All Tabs option highlighted
(1) Touch and hold the Tabs button, then (2) tap Close All Tabs. (Illustration)

The same steps on one specific model are in closing all tabs on iPhone 15.

Undo it: get a closed tab back

Clearing dozens of tabs is quick, and so is regretting it. Safari keeps a list of tabs you closed recently.

  1. Tap the Tabs button.
  2. Touch and hold the New Tab button.
  3. Choose the page you want from the list of recently closed tabs.

Each pick reopens one tab. Repeat the long press for the next one you need.

If you often go back for closed tabs, Apple also lists a Recently Closed Tabs option for the Safari start page (“Go back to tabs you previously closed”), so the list is waiting every time you open a new tab.

Private tabs: close them or lock them

Private tabs live apart from your regular tabs. Apple’s current guide says to swipe right on the tab bar at the bottom of the screen until Private Browsing opens. Apple’s support article also gives a menu route:

  • To start a private tab: open Safari, tap the More button, then tap New Private Tab.
  • To go back to regular browsing: tap the More button and choose New Tab.
  • In iOS 17 and earlier, open Safari, tap the Tabs button, and swipe to the Private tab group button.

Apple’s guide does not give separate close-all steps for private tabs. You can close them one at a time with the Close button on each thumbnail, and closing all private tabs in Safari covers that job on its own. If you only want to leave private mode, see turning off Private Browsing on iPhone.

Closing is not the only way to keep private tabs away from someone who borrows your phone. Apple says private tabs lock when you lock your device, and you can require Face ID or Touch ID to open them again: go to Settings > Apps > Safari > Privacy & Security and turn on Require Face ID to Unlock Private Browsing (Require Touch ID to Unlock Private Browsing on iPhones with Touch ID). Private tabs also stay out of your History, according to Apple.

Keep the tab count down

A big pile of tabs usually builds up quietly. Two things help:

  • Open Links: Apple documents Settings > Apps > Safari > Open Links > In Background. With In Background chosen, links you open in a new tab load behind the page you are reading, which makes it easy to collect tabs without noticing. Switching back means each new tab comes to the front.
  • Tab Groups: give recurring projects their own group, so a single Close All clears a finished project without touching the rest.

Closing tabs is separate from clearing your browsing history. Apple puts history under Settings > Apps > Safari > Clear History and Website Data, and the walkthrough on deleting cookies on iPhone explains what that button removes. If tabs seem to vanish without you closing them, stopping Safari from closing tabs covers the settings to check.

Safari close-all questions

Does Close All Tabs empty my other Tab Groups too?

No. Apple’s tip closes the tabs “in this Tab Group.” Other groups keep their tabs until you switch to them and clear them separately.

Is locking Private Browsing the same as closing private tabs?

No. Locking keeps the tabs open but hidden behind Face ID, Touch ID or your passcode, so you can pick up where you left off. Closing removes them from the tab view.

I use Microsoft Edge on my iPhone as well. Do these steps work there?

No, these are Safari’s controls. Edge has its own tab view, covered in closing all tabs in the Microsoft Edge iPhone app.

For the full list of tab controls, Apple’s page on opening and closing tabs in Safari on iPhone is the reference to keep, along with its guide to organizing tabs into Tab Groups. Next time the count creeps up, a long press in the tab view clears the group in seconds.