Close tabs to the left

Done with the tabs before this one? Close them in one go.

Close every tab to the left of the one you’re on and keep your pinned tabs. Press ⌘K, type left and press ↵.

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

Live demo

Close tabs to the left in three steps

  1. ⌘K

    Step 1

    Open the palette

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

  2. left

    Step 2

    Find the command

    Close Tabs to the Left shows under Commands.

  3. ↵

    Step 3

    Run it

    Every unpinned tab before this one closes.

Commands

In detail

What Close Tabs to the Left closes

It starts from the tab you opened the palette on and only changes the window you’re in. Pinned tabs never close.

Every tab before this one

TabCmdr looks at where the current tab sits in the tab bar and closes every tab before it. The tabs after it stay where they are, and so do the tabs in your other windows.

  • A message at the bottom of the page says how many closed, like Closed 3 tabs.
  • Nothing to the left? You see No tabs to the left.

Your pinned tabs stay at the start

Pinned tabs sit at the start of the tab bar, so they’re always to your left. Close Tabs to the Left skips them, and the tab bar ends up as your pinned tabs, then the tab you’re on, then everything after it.

  • Tabs in a tab group close like any other tab, even when the group is collapsed.
  • Type :c left to search only commands.

Closed one too many? Bring it back

Every tab it closes 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

  • Close Tabs to the Right

    The same command for the other side. It closes every tab after the one you’re on.

  • Close Other Tabs

    Closes both sides at once. Only the tab you’re on and your pinned tabs are left in the window.

  • 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.

FAQ

Questions about closing tabs to the left

More in the documentation.

Can Chrome close tabs to the left?

Not in one click. Chrome’s tab menu has Close tabs to the right and Close other tabs, but no option for the left side. You can Shift-click to highlight the tabs on the left, then right-click one and choose Close.

How do I close all tabs to the left with TabCmdr?

Press ⌘K on a Mac or Ctrl+K on Windows and Linux, type left and press Enter on Close Tabs to the Left. Every unpinned tab before the one you’re on closes.

Are pinned tabs closed too?

No. Pinned tabs are always on the left of the tab bar, and Close Tabs to the Left leaves them open.

Does it close tabs in a tab group?

Yes. Grouped tabs to the left of yours close too, including the tabs in a collapsed group.

Does it close tabs in my other windows?

No. It only changes the window you’re in.

Can I get the closed tabs back?

Yes. Type :r to list recently closed tabs and press Enter on the one you want, 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