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

  1. ⌘K

    Step 1

    Open the palette

    On the tab you want to keep. Ctrl+K on Windows and Linux.

  2. close other

    Step 2

    Type close other

    Close Other Tabs shows under Commands.

  3. ↵

    Step 3

    Press Enter

    Only this tab and pinned tabs stay.

Chrome's way

Highlight and close tabs in Chrome

Chrome closes highlighted tabs together. Click a tab, hold Shift and click another to highlight every tab between them, then right-click one of them and choose Close. To keep a tab in the middle, do this once on each side of it.

Source: Google’s tabs help page, 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.

TabCmdr palette on the Tabs filter, listing Calendar, Q4 planning, Pull requests, Hacker News, YouTube and Payments, with Inbox under Pinned
Before: six tabs in this window, with Inbox pinned, and Payments - Stripe in a second window.

Step 2: Type close other

Close Other Tabs shows up under Commands, already highlighted.

TabCmdr palette with close other typed, showing the Close Other Tabs command 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.

TabCmdr palette on the Tabs filter after Close Other Tabs, listing Q4 planning and Payments, with Inbox under Pinned
After: Q4 planning and the pinned Inbox tab are left. Payments - Stripe is in another window, so it stays open too.

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.

Install for Chrome

FAQ

Questions about closing other tabs

More in the documentation.

How do I close all other tabs in Chrome?

With TabCmdr, stay on the tab you want to keep, press ⌘K on a Mac or Ctrl+K on Windows and Linux, type close other and press Enter on Close Other Tabs.

Does Close Other Tabs close pinned tabs?

No. Pinned tabs stay open, along with the tab you’re on.

Does it close tabs in other windows?

No. It only closes tabs in the window you’re in. To clear copies of the same page across all windows, use Close Duplicate Tabs.

Can I close only the tabs on one side?

Yes. Close Tabs to the Right and Close Tabs to the Left close the tabs on one side of the tab you’re on, and also leave pinned tabs open.

Can I undo it?

Each closed tab goes into Recently Closed. Type :r in the palette to list them and press Enter on the one you want back. Undo Close Tab brings back only the last one.

One shortcut for your whole browser. Stop hunting for tabs.

Free for 7 days Then $3.99 / y No account