How-to guide
How to close all tabs except the current one
Press ⌘K (Ctrl+K on Windows and Linux) with TabCmdr, type close other and press Enter. Every tab in the window closes except the one you’re on and pinned tabs.
Quick answer
Keep one tab in three steps
- ⌘K
Step 1
Open the palette
On the tab you want to keep. Ctrl+K on Windows and Linux.
- close other
Step 2
Type close other
Close Other Tabs shows under Commands.
- ↵
Step 3
Press Enter
Only this tab and pinned tabs stay.
Chrome's way
Use the tab menu in Chrome
Right-click the tab you want to keep and choose Close other tabs. Every other tab in that window closes, apart from pinned tabs.
To close only some of them, click a tab, hold Shift and click another to highlight every tab between them, then right-click one of them and choose Close.
Source: Google’s tabs help page and the tab menu code in Chromium, which Chrome is built on, checked in October 2026.
TabCmdr's way
Close the rest of the window with TabCmdr
TabCmdr is a keyboard launcher that lives in your browser. Its Close Other Tabs command keeps the tab you’re on and closes everything else in the window, apart from pinned tabs.
Before you start: add TabCmdr from the Chrome Web Store. It has a 7-day free trial and needs no account.
Step 1: Open the palette on the tab you want to keep
Press ⌘+K on a Mac or Ctrl+K on Windows and Linux. To check what’s open first, press → for the Tabs filter, which lists tabs from every window. Pinned tabs have their own Pinned heading.

Step 2: Type close other
Close Other Tabs shows up under Commands, already highlighted.

close other finds Close Other Tabs.Step 3: Press Enter
The palette closes and so do the other tabs in this window. A message at the bottom of the page says how many closed, such as Closed 4 tabs, or No other tabs to close if there were none.

What Close Other Tabs leaves alone
- The tab you’re on.
- Pinned tabs in this window.
- Your other windows and every tab in them.
Each tab it closes goes into Recently Closed, so you can bring any of them back with :r. See how to reopen closed tabs for the details.
Try it on your own tabs
Works in Chrome, Edge, Brave, Arc, Vivaldi and Opera.