60

I know that I can go to history section in desktop and there I can locate the history of android tabs separately and then can open the tabs one by one.

But I want to transfer all of my current Android session to desktop at once without going through the arduous process of locations URLs in history one by one and then opening them.

Giacomo1968
  • 53,069
  • 19
  • 162
  • 212
ankit
  • 815
  • 2
  • 8
  • 10

5 Answers5

44

Use Tabs from other devices on the left of History (you can go straight to chrome://history/syncedTabs), click on Open all in menu () on the right.

chrome://history/syncedTabs

Hex
  • 1,272
  • 1
  • 14
  • 18
  • 3
    This only shows the tabs that have already been closed. I don't feel that it answers the question of "current session". – Tom Anderson Sep 11 '17 at 04:58
  • 8
    Actually, I changed my mind. I think it answers the question but it's incomplete. If the tabs are too old, they don't show up in the list, but we can use the workaround suggested by @Luke Flegg. Also, stale entries appear in the "Tabs from other devices" list. – Tom Anderson Sep 11 '17 at 06:16
  • 3
    As @TomAnderson says, this only shows a list of recent tabs, not the list of actually open tabs. In other words, there's no correlation to whether the tabs are currently open or have been closed, only to whether they've been recently visited. – waldyrious Feb 14 '18 at 09:55
  • where exactly are we talking about here – Muhammad Umer Aug 05 '19 at 04:42
  • 1
    @TomAnderson Update: Now it works for all tabs - old and new alike. – ankit Dec 27 '19 at 11:47
  • 1
    Oh my gosh, you just saved me years of wasted time. Thank you so much lol. – timhc22 Apr 02 '20 at 17:06
  • 2
    As of October 2020, this still shows only a tiny fraction of open tabs for me -- the ones that were recently loaded. If I was asking the question, I would not accept this answer. – Ivan Vučica Oct 31 '20 at 20:34
  • 1
    The new feature of Tab Groups messes with chrome://history/syncedTabs. All the tabs in groups don't show up at all, only tabs that are outside of groups :( – Underlines Feb 14 '21 at 16:22
  • 1
    It's ironic that Google's core competency is search but it's rare that I can find anything I'm looking for in my browser history. – dev_willis Feb 27 '21 at 16:23
  • 1
    Perhaps there was a bug that has been fixed since, because right now it works exactly as intended. I had about 700 tabs open on my (Android) phone, and 'open all' in a new window on my (Win10) desktop transferred all of them. This may be four years old, but thanks a bunch for the suggestion :) – MiG Jan 06 '22 at 15:19
37

A somewhat working solution is found here:
https://dev.to/piczmar_0/when-you-never-close-tabs-on-your-mobile-chrome-browser-2boj

I wonder if it preserves the order of the open tabs, this is crucial for me.

# First enable USB debugging on phone and connect via USB
# Then install android developer tools

# Verify device is connected and permissions granted
./adb devices -l

# Connect to Chrome Android's legacy debugging API
./adb forward tcp:9222 localabstract:chrome_devtools_remote

# Visit http://localhost:9222 to verify, then
curl http://localhost:9222/json/list > mobile-tabs.json
James EJ
  • 179
  • 1
  • 6
Petrus K.
  • 471
  • 4
  • 6
  • 1
    Wow, amazing solution! – James EJ Feb 12 '21 at 14:00
  • 3
    Amazing. This is the only solution that works with ALL tabs, unlimited numbers, including the new Chrome Mobile feature of "Tab Groups"! Copying the json list into an editor and a bit of regex magic, I got it into an excel in a few minutes. – Underlines Feb 14 '21 at 16:40
  • Works brilliantly. Thanks for this (and to Marcin Piczkowski for originally documenting the idea)! – Garrulinae May 17 '21 at 00:46
  • 1
    FYI they seem to be discussing removing this feature: https://bugs.chromium.org/p/chromium/issues/detail?id=1232509 They are leaning away from providing a human-friendly interface for "security reasons" and towards an API approach intended for use by automated testing tools and such. The localhost:9222 page is marked as deprecated, and they recommend using chrome://inspect instead. While that does provide a list of all currently-open tabs, it does not currently provide the full URL of each open tab, at least not in any human-friendly way I can see. We will need a new solution soon. – Adrian Dec 06 '21 at 18:45
  • 2
    As of 9th May 2022, it still works. I had more than 500 tabs and wanted to save them. Huge thanks for this – Henrique de Sousa May 09 '22 at 21:24
  • Thanks for the solution. It works. There is a thread in the Android Enthusiast Stack Exchange with code similar to this but that produces 3 files in human readable format, json and curl command. I found it to be the best solution so far to save everything and do some processing or link extraction with the mobile chrome tabs. The link to the exchange is: https://android.stackexchange.com/questions/56635/how-can-i-export-the-list-of-open-chrome-tabs/199496#199496 ... the link to the repo: https://github.com/machinateur/android-chrome-tab-transfer – 1vand1ng0 Sep 30 '22 at 17:07
  • anyone knows if this works with kiwi browser? – tinker Jan 11 '23 at 07:08
  • Still works 2023-07-01. I installed Android Studio but had trouble finding adb.exe / setting up my PATH, but found it in "%LOCALAPPDATA%\Android\sdk\platform-tools" - hope this helps others. – robut Jul 01 '23 at 15:07
23

The only workaround (if you can even call it that) is refreshing the tabs on my phone, one by one. Then they appear on my desktop. This isn't viable when you have hundreds of open tabs on the phone.

Mokubai
  • 89,133
  • 25
  • 207
  • 233
Luke Flegg
  • 341
  • 2
  • 5
  • 4
    I agree that this is an answer. The "Tabs from other devices" response by @Hex does work but only if the tabs aren't too old. If they are too old, then this workaround can fix it. I just refreshed 134 tabs on my Android. It took around five minutes so it is possible to do but very annoying. – Tom Anderson Sep 11 '17 at 06:19
  • 2
    I just found a solution to avoid the annoying process of refreshing all tabs one by one. If you go to your Google Android settings section and you click in your Google account preferences (the avatar), you can force a toggle on/off/on to get all the tabs synced. – Ferran Basora Jan 01 '18 at 19:51
  • 1
    @FerranBasora "Google Android settings" - where is this? on the mobile? – lifebalance Feb 03 '18 at 19:12
  • 2
    @lifebalance I think FerranBasora meant Account settings. Usually in Android settings you can find accounts that are synced. Like Microsoft live accounts or Google accounts. When you locate the google account you use for your chrome, you open its sync settings and find "Chrome". Turn that off and on again — force sync. Worked for me with over 100 tabs – Ev0oD Sep 25 '19 at 11:10
  • Now no longer do we need to update tabs. The problem is finally sorted. – ankit Dec 27 '19 at 11:48
  • @ankit How is it sorted? Can you elaborate? I wanted to sync links and update visited and not visited accordingly. – Zeel SHah Jan 29 '20 at 19:05
  • @ZeelSHah Now, you don't have to reload mobile tabs to see them. Just go to chrome://history/syncedTabs and you can find all your mobile tabs there. – ankit Feb 01 '20 at 11:16
1

How can I export the list of open Chrome tabs? (Android.StackExchange.com. Currently highest voted under tag chrome-for-android)

Firefox-solution:

(for those who can switch browsers)

Synced tabs

Last time I tested Google Chrome's solution, it only got 20 tabs at a time.

  1. Make sure your PC is synced with the Android-device
  2. Disconnect the computer from the internet (if you have hundreds of tabs open)
  3. Sync-sidebar: Right click device
  4. Open All In Tabs
  5. Firefox gives up loading them after a while because you're not connected to the internet (much faster on Ubuntu than macOS)
  6. Right click a tab -> Select all tabs
  7. Right click a tab -> Bookmark All Tabs
Jonta
  • 129
  • 5
1

A clunky partial solution is to connect your phone to a computer over USB and use Chrome devtools to view the list of tabs open on the phone. This seems to get all the tabs, not just the recent ones.

Caveat: Titles and URLs are each truncated to the first 100 characters if they were longer than that. For example here's a tab whose title and URL are truncated to 100 characters:

Research shows natural language benchmarks don't measure AI models' general knowledge well | Venture…
https://venturebeat.com/2020/08/12/natural-language-benchmarks-dont-measure-ai-models-general-knowle…

The truncation isn't ideal, but 100 chars of title + 100 chars of URL is often still enough to find the page again in a search engine. The tabs seem to be in roughly the same order as the tab switcher, with occasional exceptions.

Steps

Follow https://developer.chrome.com/docs/devtools/remote-debugging/ for the full details of setting up remote devtools, but the high level steps are:

  1. Enable USB Debugging on your Android device.

  2. Go to chrome://inspect#devices in Chrome on your computer.

  3. Ensure the Discover USB Devices checkbox is enabled.

  4. Connect your Android device to your computer via a USB cable.

  5. Accept the Allow USB Debugging prompt on your Android device (if applicable).

  6. Open Chrome on your Android device.

  7. After a few seconds, a list of the titles and URLs of all open websites on your phone should appear in the chrome://inspect#devices tab on your computer. Copy-paste the list to a text file.

John Mellor
  • 1,611
  • 1
  • 11
  • 6
  • Fyi, the accepted solution above requires no hassle at all and works exactly as intended - it immediately copies ALL open tabs from the phone to the desktop! – MiG Mar 01 '22 at 07:10
  • It's definitely worth trying that first, but in my case on a 2 year old phone `chrome://history/syncedTabs` only opened the most recent ~30 tabs (of ~900). I didn't try anything fancy like [toggling sync to force a refresh](https://superuser.com/questions/1173850/how-can-i-transfer-all-of-my-open-tabs-in-chrome-in-android-to-chrome-on-a-deskt/1707446?noredirect=1#comment2241811_1238948); perhaps that would have helped. (FWIW I have tab groups enabled, but was missing ungrouped tabs too.) – John Mellor Mar 01 '22 at 12:56