How to Close All Tabs at Once in Safari on iPhone

Browsing web links from emails, social feeds, and search queries often causes dozens—or even hundreds—of background tabs to accumulate in Safari on iPhone. Swiping tabs away individually one by one is time-consuming and tedious. Apple includes convenient shortcuts in iOS that allow you to dismiss every open tab simultaneously in a fraction of a second. Here is how to close all tabs at once in Safari on iPhone.

Method 1: Long-Pressing the Tab Switcher Button (Fastest)

You can close your entire tab collection directly from any webpage without opening the tab grid:

  1. Open Safari on your iPhone.
  2. Look at the toolbar at the bottom of the screen and locate the Tabs icon (the two overlapping squares in the bottom-right corner).
  3. Press and hold (long-press) the Tabs icon for one second.
  4. A pop-up action menu will appear on your screen.
  5. Tap Close All [Number] Tabs (for example, “Close All 47 Tabs”).
  6. Tap the red confirmation prompt reading Close All [Number] Tabs. Safari will close every page and present a fresh, clean Start Page.

Method 2: Closing All Tabs from the Tab Overview Grid

If you have already opened the card overview displaying your open tab thumbnails:

  1. Tap the Tabs icon (the overlapping squares) once to view your open tab grid.
  2. Locate the Done button in the bottom-right or top-right corner.
  3. Press and hold (long-press) the Done button.
  4. A context menu will emerge displaying Close All [Number] Tabs.
  5. Tap the button to confirm and clear your entire tab list instantly.

How to Automatically Close Inactive Safari Tabs in iOS

To prevent massive tab buildup from reoccurring in the future, configure iOS to automatically purge old tabs that you haven’t viewed recently:

  1. Open the Settings app on your iPhone.
  2. Scroll down and tap Safari.
  3. Scroll to the Tabs section and tap Close Tabs.
  4. Select your preferred automated expiration threshold:
    • After One Day
    • After One Week
    • After One Month
  5. Safari will now silently archive and remove abandoned tabs in the background while keeping actively viewed sessions untouched.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.