Close a single tab in Safari
To close one tab, move your cursor to the tab you want to close and click the small X that appears on the left side of the tab name. The tab closes immediately and you stay in Safari.
On iPhone or iPad, swipe left across the tab name at the bottom of the screen, then tap the trash icon that appears. The tab disappears and Safari shows you the next tab in your list.
If you close a tab by accident, you can reopen it right away. On Mac, press Command + Shift + T to bring back the last closed tab. On iPhone, tap the tab switcher (the overlapping squares icon at the bottom right), then tap Edit and look for a + icon — tap it to see recently closed tabs.
Key Takeaways
- Click or tap the X on any tab to close it individually, and the tab vanishes without closing Safari.
- On Mac, Command + Shift + T reopens the last tab you closed, which works within seconds of closing it.
- You can close multiple tabs at once by right-clicking (Mac) or long-pressing (iPhone) and selecting close options from the menu.
- Closing all tabs at once is faster than closing them one by one, and Safari remembers your closed tabs for a short time afterward.
- On iPhone, the tab switcher at the bottom right shows you how many tabs are open and lets you manage them all in one place.
Close multiple tabs at once on Mac
If you have many tabs open and want to close several without closing Safari, right-click on any tab and look for Close Multiple Tabs or Close Tabs to the Right. The first option closes all tabs except the one you right-clicked. The second closes only the tabs to the right of your selection.
Another way is to hold down the Option key while clicking the X on a tab — this closes that tab plus all tabs to its right. This is faster if you want to close a group of tabs in one motion.
Close all tabs at once on Mac
To close every tab but keep Safari open, press Command + Option + W. Safari closes all tabs and shows you an empty window. You can also go to the File menu at the top and select Close All Tabs if you prefer using the menu.
Safari remembers the tabs you just closed for a short time. If you change your mind, use Command + Shift + T to reopen them one at a time, or go to History in the menu bar and look for Reopen All Windows From Last Session to bring back everything at once.
Close all tabs on iPhone and iPad
Tap the tab switcher icon (the overlapping squares) at the bottom right of your screen. You will see all your open tabs displayed as cards. Tap Edit in the bottom right corner of the tab switcher.
Once you are in edit mode, tap Close All [Number] Tabs at the bottom of the screen. Safari closes every tab and shows you an empty tab view. To reopen closed tabs, tap the tab switcher again, then tap Edit and look for a + icon or Recently Closed option to see tabs you just closed.
Close tabs in a specific Safari window on Mac
If you have multiple Safari windows open, you can close all tabs in just one window without touching the others. Click on the window you want to clear, then press Command + Option + W. Only that window's tabs close — your other Safari windows stay open with their tabs intact.
This is useful if you have one window for work and another for personal browsing, and you want to clear one without losing your place in the other. The closed tabs are still recoverable with Command + Shift + T for a short time after closing.
What happens when you close a tab
When you close a tab, Safari removes it from your tab bar but does not delete your browsing history. The website you were viewing stays in your history, so you can find it again by searching in the address bar or by going to History in the menu.
Closing tabs does not clear your cookies, passwords, or saved information on websites. If you want to remove that data, you need to clear your browsing history separately through Safari's settings. Closing a tab is just removing it from your current view — it does not erase your connection to that website.
Frequently Asked Questions
Can I undo closing a tab after I close Safari?
Safari remembers closed tabs only while the app is still running. Once you quit Safari completely, the list of recently closed tabs disappears. If you close Safari and reopen it, you cannot recover tabs from before you quit. To avoid losing tabs, use File > Close All Tabs instead of quitting Safari if you plan to come back later.
How do I close a tab without using the X button?
On Mac, right-click any tab and select Close Tab from the menu. You can also click a tab to select it, then press Command + W to close it. On iPhone, swipe left on the tab at the bottom of the screen and tap the trash icon.
What is the difference between closing a tab and closing a window?
Closing a tab removes one webpage from your view but keeps Safari open. Closing a window closes Safari entirely if it is your last window. On Mac, Command + W closes a tab, while Command + Q closes Safari. On iPhone, you cannot close Safari from the tab switcher — you must swipe up from the bottom to close it.
Do closed tabs use up my device's memory?
No. Once a tab is closed, Safari stops using memory for that webpage. Closing tabs can make Safari run faster if you have dozens of tabs open, because each open tab takes up some of your device's resources. If Safari feels slow, closing unused tabs often helps.
Can I save a tab before closing it?
Yes. Before closing a tab, you can bookmark it by pressing Command + D on Mac or tapping the share icon and selecting Add Bookmark on iPhone. You can also add it to your reading list by pressing Command + Shift + D on Mac. This way you can close the tab and find it again later without using the recently closed list.