Close individual tabs by clicking the X or swiping
The fastest way to close a single tab in Safari is to click the small X that appears on the left side of each tab when you hover over it. On Mac, move your cursor to the tab you want to close and the X appears automatically. Click it and the tab closes when ready.
On iPhone or iPad, swipe left across the tab thumbnail in the tab overview screen. A red delete button appears. Tap it to close that tab. You can also long-press a tab and select "Close Tab" from the menu that appears.
If you have multiple tabs open and want to close several at once without closing them one by one, Safari offers faster methods depending on whether you want to keep some tabs or start fresh.
Key Takeaways
- Click the X on any tab in Mac Safari to close it when ready, or swipe left on iPhone tab thumbnails to delete them.
- Right-click a tab on Mac to close all tabs to the right of it, which is faster than closing them individually.
- Close all tabs at once by using keyboard shortcuts: Command+Option+W on Mac closes all tabs in the current window, or Command+Q to quit Safari entirely.
- On iPhone, tap "Tabs" at the bottom, then tap "Edit" and select multiple tabs before tapping "Close [number] Tabs" to delete several at once.
- Closed tabs are gone permanently unless you reopen them when ready using Command+Shift+T on Mac or by checking your browsing history.
Close all tabs to the right of one tab on Mac
If you have many tabs open and want to keep only the first few, right-click on the tab where you want to stop. A menu appears with the option "Close Tabs to the Right." Click it and Safari closes every tab after that one in a single action.
This is much faster than closing tabs one at a time when you have 10 or 20 tabs open. The tabs you had open to the left of the one you right-clicked stay open.
Close all tabs at once on Mac using keyboard shortcuts
Press Command+Option+W to close every tab in your current Safari window while keeping Safari itself open. This leaves you with a blank Safari window ready for new browsing.
If you want to close Safari completely along with all its tabs, press Command+Q. This quits the entire Safari process. When you open Safari again later, it will not automatically reopen the tabs you closed unless you have Safari set to restore your previous session in preferences.
Close multiple tabs at once on iPhone and iPad
Tap the "Tabs" button at the bottom right of your screen (it shows a number indicating how many tabs you have open). This brings up a grid view of all your open tabs.
Tap "Edit" in the bottom right corner of the tab grid. Each tab now shows a small circle on its left side. Tap the circles next to the tabs you want to close to select them. Once you have selected all the tabs you want to remove, tap "Close [number] Tabs" at the bottom of the screen.
If you want to close all tabs except one, you can also swipe left on each individual tab thumbnail and tap the red delete button that appears.
Recover a tab you closed by accident
If you close a tab and when ready realize you needed it, press Command+Shift+T on Mac to reopen the last closed tab. You can press this combination multiple times to reopen tabs in reverse order of when you closed them.
On iPhone, there is no keyboard shortcut to reopen tabs. Instead, open your browsing history by tapping the back arrow button or the history icon, then find the website you closed and tap it to reopen it. The tab will not be restored to your tab bar, but you will be back on that website.
If you close Safari entirely and want to restore all your tabs, check your Safari settings. Go to Settings > Safari and look for "Tabs" or "On startup" options. If you have set Safari to restore your previous session, your tabs will reopen the next time you launch the app.
Prevent tabs from piling up in the first place
Safari on Mac has a feature called Tab Groups that lets you organize tabs by topic and save them for later. Click the grid icon next to the address bar, then "Add Tab Group" to create a named collection. You can close the group without losing the tabs permanently, then reopen them when you need them again.
On iPhone, you can create separate windows for different tasks. Swipe up from the bottom of the screen to open the app switcher, then tap and hold Safari to see the option "Open New Window." This creates a separate Safari window with its own set of tabs, keeping your browsing organized without cluttering a single tab bar.
Frequently Asked Questions
Can I undo closing a tab after I close Safari completely?
Not reliably. Once you quit Safari, the closed tabs are gone unless you had Safari set to restore your previous session. Check Settings > Safari on iPhone or Safari > Settings on Mac to see if "Restore windows from last session" or similar is turned on. If it is, your tabs will reopen next time you launch Safari.
What happens to my browsing history when I close a tab?
Closing a tab does not delete it from your browsing history. The website you were on stays in your history even after the tab is closed. You can find it by opening your history menu and searching for the site name.
Is there a way to close all tabs except the one I am currently viewing?
On Mac, right-click the tab you want to keep and select "Close Other Tabs." On iPhone, use the Edit mode in the tab grid to select all tabs except the one you want, then tap "Close [number] Tabs."
Do closed tabs take up storage space on my device?
No. Closing a tab frees up memory that Safari was using to keep that page loaded. The only thing that takes up storage is your browsing history, which is separate from open tabs and can be cleared independently in Safari settings.