If you’re like most people, you use your iPhone or iPad to browse the web and keep several open tabs at the same time. But if you want to close all of those tabs, it’s not as easy as just clicking on the tab bar and selecting “Close All Tabs.” Here’s how to do it:

  1. Open Safari on your iPhone or iPad.
  2. Tap the three lines in the top left corner of the screen.
  3. Select “Tabs.”
  4. Tap each tab that you want to close. (Or tap the “X” in the top right corner of each tab.)
  5. Select “Close Tab.” ..

If you have dozens of tabs open in Safari on iPhone or iPad and need to clear them out quickly, it can be tedious to “X” them out one at a time. Luckily, there are two ways to close all your Safari tabs at once, and they also work in Private Browsing mode. Here’s how.

First, open “Safari” on your iPhone or iPad. While on any page, locate the tab switcher button, which looks like two overlapping squares. On the iPad, you’ll find it in the upper-right corner of the screen.

On the iPhone, it’s in the lower-right corner of the screen.

Place your finger on the tab switcher button and hold it there for a moment, preforming a “long press.” In the menu that pops up, select “Close All Tabs.” (There will be a number in the choice that lists the number of open tabs.)

When Safari asks you to confirm with another pop-up, tap “Close All Tabs” again. After that, all of your browser tabs will close.

How to Close All Safari Tabs on the Tab Switcher Screen

There’s another way to quickly close all tabs in Safari on iPhone and iPad. First, open “Safari,” then tap the tab switcher button once.

On the tab switcher screen, locate the “Done” button, which is located in the upper-right corner of the screen on the iPad and in the lower-right corner of the screen on the iPhone.

Long-press the “Done” button—place and hold your finger there for a moment until a pop-up appears.

In the pop-up, select “Close All Tabs.” The exact name of the pop-up action will vary, depending on the number of tabs you have open.

Safari will ask you to confirm closing all the tabs with another pop-up message. Select “Close All Tabs” again. Then all of your Safari tabs will close instantly. The same action works in Private Browsing mode. Pretty handy!

How to Reopen Recently Closed Tabs

If you accidentally closed all of your tabs and would like to get them back, you can retrieve them one at a time as long as you aren’t in Private Browsing mode. Just tap the tab switcher button, then long-press the “+” button until a “Recently Closed Tabs” list appears. From there you can tap on entries in the list to open them again in Safari. Good luck!

RELATED: How to Reopen Closed Tabs on an iPhone or iPad