Quick Links

If you tend to open a lot of tabs in your browser, it can become difficult to find the tabs with your most used websites. Pinning tabs in your browser moves those tabs to the left and shrinks the tabs to only show the favicon, and you can do it with a simple right-click.

But what if, instead of keeping a specific set of tabs pinned, you regularly pin and unpin tabs as you work? With a simple browser extension for Chrome or Firefox, you can pin and unpin tabs with a quick keyboard shortcut.

Chrome

To pin and unpin tabs using shortcuts in Chrome, we’re going to use an extension called Tab Pinner. Head to that page and click “Add to Chrome” to install it. Follow the on-screen instructions.

01_adding_tab_pinner_to_chrome

To access the options for Tab Pinner, click the Chrome menu on the far right of the toolbar and go to More tools > Extensions.

02_selecting_more_tools_extensions

The Extensions page opens on a new tab. Scroll all the way down to the bottom and click the “Keyboard shortcuts” link on the right.

03_clicking_keyboard_shortcuts

Related: How to Create Custom Keyboard Shortcuts For Extensions in Google Chrome

The Keyboard Shortcuts for Extensions and Apps dialog box allows you to specify shortcuts to use with certain extensions and apps. Under Tab Pinner (Keyboard Shortcuts), the “Pin or unpin the current tab” and “Unpin all pinned tabs in the current window” options have default keyboard shortcuts assigned to them, but you can change them. The “Pin all tabs in the current window” option does not initially have a keyboard shortcut assigned. To assign or change the keyboard shortcuts, simply click in the box for the option and press the keyboard combination you want to use.

04_adding_shortcut_for_pinning_all_tabs

If you want to be able to use any of these shortcuts on tabs in Chrome even when Chrome is not the active window, select “Global” from the drop-down list to the right of the shortcut box. For example, this could let you unpin all of Chrome's tabs even when Chrome is minimized with the “Unpin all pinned tabs in the current window” option. Once you’ve set up your keyboard shortcuts, click "OK" to accept your changes and close the dialog box.

04a_selecting_global

 

Now you can use the shortcuts to pin and unpin tabs in Chrome.

06_pinned_tabs_chrome

Firefox

In Firefox, there is an add-on called Pin/Unpin Tab that allows you to use a simple keyboard shortcut to pin and unpin the current tab. Go to the Pin/Unpin Tab add-on page and click “Add to Firefox” button. The extension installs quickly and does not require you to restart Firefox.

07_installing_pin_unpin

To access the options for Pin/Unpin Tab, click the Firefox menu (the hamburger icon on the right side of the toolbar) and click the “Add-ons” icon.

08_selecting_add_ons

Make sure “Extensions” is selected in the menu on the left.

09_clicking_extensions

Click the “Options” button for the Pin/Unpin Tab extension.

10_clicking_options

Select a modifier key to use (Alt, Ctrl, or Shift) from the “Modifier Key” set of option buttons and a letter from the “Normal Key” drop-down list. Make sure you don’t select a key combination that’s already in use for another action as this key combination will override the existing action. Alt+P is the default key combination.

11_changing_shortcut_key

Now, you can press the chosen modifier key and letter you chose to pin the current tab.

12_pinned_tabs_firefox