26

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.

39

(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

  • 1
    Also, it appears that it does not count pinned tabs, or the inspect tab itself. – dissolved Nov 11 '17 at 20:56
  • It does count the inspect tab iteself, actually, it counts it three times (the title contains "inspect", the url contains "inspect" and the inspect link). I would prefer @Yarin's answer instead, it counts correctly. – biolauri Oct 31 '18 at 15:01
  • 2
    It also list's only some tabs, if Chrome has been restarted with open tabs, see my comment at @Yarin's answer (superuser.com/questions/967064/…) for further info. To get a full list, tab into each open tab to trigger loading. – biolauri Oct 31 '18 at 15:05
11

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.

  • 2
    This is also nice since it won't overcount by including any other strings that happen to have the word inspect in them. – davejagoda Sep 5 '18 at 20:54
  • 2
    As Chrome loads tabs on demand after restart (at least with a high number of open tabs), the inspect page doesn't list those (and only the one's already loaded). If you want to count all, then you have to tab into every single tab and the lists in the inspect page is getting updated. – biolauri Oct 31 '18 at 15:03
  • @biolauri I tried that now, restarted my computer and opened chrome, and I still get a high tab count, even though many tabs are barely loaded (naked html). (Chrome 70) – Yarin Dec 1 '18 at 7:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.