98

How can I view the number of open tabs in Chrome (desktop) without installing an app or extension?

On Chrome for iOS it's easy, just look in the top right for the number:

Tab count, Chrome (iOS)

I have seen this question posted before, but asking for app/extension recommendations. I would like a solution which does not require installation of third-party code.

Hennes
  • 65,804
  • 7
  • 115
  • 169
jsejcksn
  • 4,581

7 Answers7

104

(Note: This answer was provided using Chrome version 45)

By navigating to chrome://inspect/#pages, one can view a list of all open pages (tabs):

Chrome DevTools — Pages, Chrome (desktop)

Each entry includes a link below it with the text "inspect". By performing a Find operation on the page (ctrl/cmd + F) for the string inspect, Chrome will produce the Find input box containing the total number of instances of the searched string, and, in this case, the total number of open pages/tabs in your browser!

Find input

jsejcksn
  • 4,581
53

While jsejcksn's answer led me in the right direction, it wasn't enough, since (on Chrome version 67) this page also contains embedded windows in pages, so the total count of inspect search results can be greater than the actual tab count.

The solution I found is the following:

  1. Go to chrome://inspect/#pages
  2. Run the following line of code in the javascript console:

    document.getElementById("pages-list").childElementCount
    

    The tabs count will be printed to the console.

Yarin
  • 639
23

Haven't seen this solution mentioned yet, but it is by far the easiest (one-click) solution that works for me:

If you have chrome sync enabled, simply navigate to https://chrome.google.com/sync

It should give you the count of open tabs, among other counts (e.g. bookmarks, extensions, etc)

tomosius
  • 331
19

As noted on Chrome Tricks, to get a count of tabs in each window, right click on any tab and select Move Tab to Another Window.

The items in the flyout menu show the number of tabs in the other windows:

A screenshot showing the menu described above

9

Edit: I've created a simple browser extension out of my solution.


You could utilise an existing extension's background script (Manifest V2) or service worker (MV3) and run a chrome.tabs.query() with a catch-all condition, for example

await chrome.tabs.query({ windowType: 'normal' })

In order to access an extension's background script or service worker, you'll need to

  1. Navigate to chrome://extensions in a new tab
  2. Turn on "Developer mode" from top-right
  3. Find an installed extension and click on the "background script" or "service worker" link at the bottom of the extension's description.

A new developer tools window opens up where you can run the tabs query right in the Console.

enter image description here

Kano
  • 193
8

Go to chrome://discards, and sort by Utility Rank descending. The highest Utility Rank is the number of tabs:

enter image description here

krisz
  • 193
1

Just close the window and open Chrome again to load the tabs into history (if you have history enabled). You can then click on the three little dots in the top right, go to History and there will be the full number of tabs (including inactive tabs after a restart, so no need to reload the tabs to get an accurate number). Of course, you also get the option to open the window with all the tabs again if you have History enabled properly.

Works in Google Chrome version 98.0.4758.82 (official build) (64-bit)

ljlsr
  • 11