Close other tabs

Only need the tab you're on? Close the rest of the window.

Close every tab in this window except the one you’re on and your pinned tabs. Press ⌘K, type other and press ↵.

7-day free trial No account Chrome, Edge, Brave, Arc, Vivaldi and Opera

Live demo

Close other tabs in three steps

  1. ⌘K

    Step 1

    Open the palette

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

  2. other

    Step 2

    Find the command

    Close Other Tabs shows under Commands.

  3. ↵

    Step 3

    Run it

    Only this tab and your pinned tabs stay.

Commands

In detail

Three ways to close the tabs around you

All three start from the tab you opened the palette on and only change the window you’re in. Pinned tabs never close.

Close Other Tabs keeps only the one you're on

Close Other Tabs closes every tab in the current window except the tab you’re on and your pinned tabs. Use it to get back to one page without closing the window.

  • A message at the bottom of the page says how many closed, like Closed 4 tabs.
  • If there’s nothing else to close, you see No other tabs to close.

Or close just one side

Close Tabs to the Right closes the tabs after yours, and Close Tabs to the Left closes the ones before it. Type close tabs to to see both.

  • Tabs in a tab group close like any other tab, even when the group is collapsed.
  • With nothing on that side, you see No tabs to the right or No tabs to the left.

Closed one too many? Bring it back

Every tab these commands close gets its own row in Recently Closed. Type :r to see them, newest first, and press ↵ to reopen the one you want.

  • Each row shows when you closed the tab, such as Just now.
  • Undo Close Tab brings back one tab each time you run it.

More ways to clear out tabs

  • Pinned tabs are safe

    None of the three commands closes a pinned tab, so the tabs you keep at the start of the bar stay put.

  • One window at a time

    Only the window you’re in changes. Run the command again in another window to clean that one up.

  • Close Duplicate Tabs

    Closes the extra copies of a page across all your windows and keeps one of each.

  • Close one tab from the list

    Highlight any tab in the palette and press ⌘⌫ to close it without switching to it.

  • Suspend instead of close

    Want to keep the tabs but not the memory they use? Suspend Inactive Tabs unloads them and leaves them in the bar.

  • Merge All Windows into One

    Moves the tabs from your other windows into this one first, so one cleanup covers all of them.

FAQ

Questions about closing other tabs

More in the documentation.

How do I close all tabs except the current one in Chrome?

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

Are pinned tabs closed too?

No. Close Other Tabs, Close Tabs to the Right and Close Tabs to the Left all skip pinned tabs.

Does it close tabs in my other windows?

No. These commands only change the window you’re in. To close copies of a page in every window, use Close Duplicate Tabs.

Can I close only the tabs on one side?

Yes. Type right for Close Tabs to the Right or left for Close Tabs to the Left. Chrome’s own tab menu only has the right-hand version.

Does it close tabs in a tab group?

Yes. Grouped tabs close like any other tab, including the tabs in a collapsed group.

Can I get the closed tabs back?

Yes. Type :r to list recently closed tabs and press Enter to reopen one, or run Undo Close Tab for the last one.

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

Free for 7 days Then $3.99 / y No account