If you keep a lot of pages open in Safari on your iPhone and iPad, you can quickly get rid of the tabs you don’t need and iDownloadBlog shows you how.

In Safari for iPhone and iPad, you can search through open tabs if you’d like to find one or more specific webpages that you have open. From there, you can easily close a searched-for tab.

TUTORIAL: How to search open tabs in Safari

But did you know that you can quickly close all the matching tabs with a simple long-tap of an unassuming button? This is one of those little tricks that have been around for a while but remain hard to find unless you’re aware of their existence.

Follow along as we teach you how to close any searched-for tabs in mobile Safari at once.

Here we go.

How to close searched-for tabs in Safari

Follow the steps below to fast-close your searched-for tabs.

1) Launch Safari on your iPhone, iPad or iPod touch.

2) Hit the Tabs button denoted by a pair of overlapping squares. On iPhone and iPod touch, the icon is in the bottom-right corner in portrait mode or in the top-right corner in landscape mode. On your iPad, the icon can be found in the top-right corner in either orientation.

3) Now slide down with your finger across the tabs interface until a search box reveals itself at the top of the screen.

close searched-for safari tabs
Pull down on the tabs browser to reveal a search field at the top.

4) Next, type in your search. I have many open tabs, including a few Apple support articles that I no longer need. In order to show only those, I’m going to type “support” into the box.

Notice as you begin typing how the results immediately start to narrow down—tabs without the search word in their title instantly disappear, leaving only the ones that match the query. Any non-matching tabs are simply hidden from view rather than closed.

4) Finally, tap and hold the Cancel button. Safari will pull up a menu at the screen bottom informing you how many searched-for tabs will be closed should you decide to continue.

5) Confirm the operation by tapping the option “Close x Tabs Matching [SEARCH WORD]”.

And here it is in action.

I would never know about this incredible trick if it weren’t for former Apple employee, developer and Twitter user “Maxwell”, as well as` The Loop’s Dave Mark who brought it to our attention.

A few things you should bear in mind…

Firstly, this only closes tabs on the device you’re currently using. If you have set up the iCloud Tabs feature to sync open tabs across devices, the matched tabs on one device like your iPhone won’t be also closed on your other devices, such as your Mac and iPad.

And secondly, this trick won’t work in macOS at all because even though Safari for Mac does support searching across open tabs, long-clicking or Option-clicking the Tabs button doesn’t reveal any hidden option.

Need help? Ask iDB!

If you like this how-to, pass it along to your support folks and leave a comment below.

Got stuck? Not sure how to do certain things on your Apple? Let us know via help@idownloadblog.com and a future tutorial might provide a solution.

Submit your own how-to suggestions via tips@idownloadblog.com.

iDownloadBlog.com