Close site tabs · Desktop browsers

How to Close All Tabs from the Same Website in Chrome

Finished with a shopping session, a research rabbit hole or a stack of YouTube videos? You can close that website’s tabs together and leave your other websites open.

Quick answer

With TabTools installed, right-click a tab from the website you want to close in Chrome’s tab bar and choose Close site tabs. This closes matching tabs across your normal browser windows, including matching active and pinned tabs.

Close a website’s tabs in Chrome

The tab’s context menu gives you a shortcut directly from Chrome’s tab bar.

  1. Install TabTools from the Chrome Web Store.
  2. Find a tab from the website you want to close, such as the YouTube homepage or a search results page.
  3. Right-click that tab in Chrome’s tab bar.
  4. Choose Close site tabs. Tabs with the same website hostname close together.
Chrome with six mixed tabs and Close site tabs highlighted in a YouTube tab’s context menu. View full size (opens in a new tab)
Right-click a YouTube tab in Chrome’s tab bar and choose Close site tabs.

In this example, three pages on youtube.com close while two Wikipedia tabs and Google stay open. You do not need to collect the YouTube tabs beside one another first.

Chrome after closing the three YouTube tabs, with two Wikipedia tabs and Google remaining. View full size (opens in a new tab)
After closing: only the two Wikipedia tabs and Google remain.

If Close site tabs is not available in a tab’s menu, open that tab and right-click inside the webpage instead, or use the TabTools popup below.

This is useful when you have finished with the whole website. If you still need a particular page from it, keep that in mind before using the command: it includes the tab you right-click.

Close a different website from the popup

You can also choose a website without switching to one of its pages.

  1. Open TabTools from your browser’s extensions menu or toolbar.
  2. Find the website among the suggestions under Tap to close tabs from site. Each suggestion shows its open-tab count.
  3. Select the website to close its matching tabs.
TabTools in Chrome with the pointer on the YouTube suggestion showing 3 open tabs. View full size (opens in a new tab)
With the same six tabs open, select the YouTube suggestion to close its three tabs without leaving Google.

You can also enter a hostname directly, which is useful if the website is not shown in Suggestions. Enter its hostname, such as youtube.com, in Close by keyword (press Enter), then press Enter or click Close. Enter the hostname alone, without https:// or a page path.

The TabTools keyword field contains youtube.com, with the pointer on Close. View full size (opens in a new tab)
Or enter youtube.com and click Close or press Enter.

A plain keyword such as shopping works differently: it searches tab titles and URLs. Use the exact hostname when your intention is to close one specific website.

Which tabs count as the same website?

Site closing matches the hostname, ignoring a leading www.. Different pages on that hostname match even when their paths or query parameters differ.

When closing example.comResult
example.com/article-oneCloses
www.example.com/article-twoCloses
shop.example.com/productStays open: a different subdomain
another-site.com/exampleStays open

The command covers normal windows in the browser where you run it. Matching pinned tabs and active tabs are included; private or incognito tabs are excluded. It does not reach tabs in another browser application.

Close matching tabs manually in Chrome

For a small number of tabs, Chrome’s Tab Search provides a manual route.

  1. Open Tab Search with Ctrl + Shift + A on Windows or Linux, or Command + Shift + A on Mac.
  2. Search for the website’s name or hostname.
  3. Review the open-tab results and use the close control for each page you want to remove.

This lets you keep selected pages from the website. It also means reviewing and closing the matches individually. Google documents the search and close controls in its Chrome tabs guide.

Use the same workflow in Firefox and Edge

Firefox

Install TabTools for Firefox, then right-click a tab from the target website in the tab bar and choose Close site tabs. You can also right-click inside its webpage or choose a website from the popup’s suggestions.

Microsoft Edge

Install TabTools for Edge, then right-click a tab from the target website and choose Close site tabs if your Edge version shows it in the tab’s menu. Otherwise, open the tab and right-click inside the webpage, or enter the hostname in the popup. The matching rules and cross-window scope are the same as described above.

Reopen tabs or choose a smaller cleanup

After closing tabs through the popup, its Undo button can reopen the tabs from your latest popup cleanup while that popup remains open. The right-click Close site tabs action is not recorded by the popup’s Undo button.

After a context-menu close, look in your browser’s recently closed tabs or history. Reopening a URL should not be treated as restoring unsaved form input or every detail of a page’s previous state.

If your goal is to retain one copy of each page, follow the guide to closing duplicate tabs. To keep all your pages and make them easier to scan, sort tabs by website instead.