51

Are there any extensions for Chrome that allow me to export all currently opened tabs as a text file, containing all the URLs of those tabs?

I don't necessarily need it to be a text file if there is another way that you can think of. My goal is to share the URLs with someone via email.

I'm currently using Session Manager to save my open tabs but it has no functionality to export them as described above.

10 Answers 10

18

Tab Snap allows you to copy all open tab links to the clipboard. Once copied, you can save it to a text file.

enter image description here

3
  • 4
    Has been renamed to Tab-Snap Dec 4, 2014 at 13:07
  • 1
    Does it support new window? I mean save and load tabs on multiple instance of chrome(multiple windows)
    – Dr.jacky
    Dec 2, 2018 at 10:54
  • Anyway doing it on Windows without any extension?
    – Royi
    Aug 8, 2019 at 20:01
25

In macOS you can use AppleScript.

List the URL of each tab in the frontmost window:

osascript -e{'set text item delimiters to linefeed','tell app"google chrome"to url of tabs of window 1 as text'}

List the URL of each tab in all windows:

osascript -e{'set text item delimiters to linefeed','tell app"google chrome"to url of tabs of windows as text'}

List the URL and title of each tab in the frontmost window:

osascript -e{'set o to""','tell app"google chrome"','repeat with t in tabs of window 1','set o to o&url of t&" "&title of t&linefeed',end,end}|sed \$d

List the URL and title of each tab in all windows:

osascript -e{'set o to""','tell app"google chrome"','repeat with t in tabs of windows','set o to o&url of t&" "&title of t&linefeed',end,end}|sed \$d

3
  • 1
    Love being able to do this without installing an extension! This worked for me on Mojave after checking the Google Chrome checkbox for iTerm in Security & Privacy -> Privacy -> Automation. You may need to do something similar if you get execution error -1743.
    – eebbesen
    Feb 27, 2020 at 0:37
  • ...yes and it does it only for the currently active Chrome window! love it
    – Edoardo
    Jul 3, 2020 at 6:56
  • This worked for me after a system restart (before restart it would just open 7 empty Chrome windows and exit with error code -600). Thank you!
    – akdom
    Sep 19 at 20:39
22

In latest Chrome/Chromium you don't need any external tools. These are the steps:

  1. right click on any tab
  2. click add all tabs to bookmarks
  3. then click save
  4. click 3 dots
  5. click Bookmarks -> Bookmark Manger
  6. click export bookmarks

It will generate html file with all your bookmarks including open tabs (the file can be imported in different Google Chrome/Chromium profile).

EDIT:

in latest chrome/chromium this feature change place but it's even simpler to use:

  1. click on main manu (meatball - 3 dots)
  2. click bookmarks
  3. click bookmark all tabs... where you can pick directory

... rest is the same

8
  • 4
    "bookmark all tabs" only bookmarks tabs in the current browser window. If you have multiple windows open you have to save them individually.
    – Andrew
    Sep 28, 2020 at 3:01
  • @Andrew it's per user, each user have they own Chrome profile, so everything in Chrome browser, you do to single user and single window.
    – jcubic
    Sep 28, 2020 at 11:25
  • 2
    the export is "per user" but "Bookmark all tabs" only applies to one window at a time.
    – Andrew
    Sep 28, 2020 at 15:07
  • @Andrew and can you have same user on different windows have different bookmarks, I've never seen such a thing, AFAIK bookmarks are per user not per window.
    – jcubic
    Sep 28, 2020 at 15:45
  • 2
    yeah they are per user. I'm saying if I have 10 browser windows open with 10 tabs in each, there is no easy way to bookmark all 100 tabs. that's all.
    – Andrew
    Sep 28, 2020 at 19:22
12

TabsOutliner (a Chrome extension which displays all currently open tabs and windows) can export not only flat tab lists to a usable text format (as HTML by saving the TabsOutliner window through Ctrl-S, with options to also save to GoogleDoc or Evernote or some other programs by drag & drop), but the exported data additionally contains the relations between the tabs (what was opened from what) and also the notes and all other marks which accompany the tabs in TabsOutliner.

The screenshot below shows an example tabs list in TabsOutliner as well as an example of the data from the TO window is exported to a Google Doc (just by drag & dropping from the TabsOutliner interface it is possible to export all windows by one drag & drop gesture when dragging the root node).

tabs list in Tabs Outliner example of data from a window exported to Google Doc


Disclaimer - As it seems there are some restrictions when promoting your own work, please be aware that I am the developer of this extension.

6
  • 1
    How do you import the exported Tabs Outliner.htm file?
    – Raj
    Mar 19, 2014 at 23:56
  • You can open the Tabs Outliner html file in Chrome and Ctrl-click the links to reopen your tabs. May 4, 2015 at 11:12
  • Alternatively - the second level hierarchies from this file can be dragged back to the Tabs Outliner by mouse. Though i heard some bug reports that that this might not work on MAC...
    – omnray
    May 11, 2015 at 19:17
  • @omnray, It seems like to import, we'd have to drag the Windows in one-by-one. This means that if I have 100 windows, I'd have to drag-and-drop 100 times. Is there no better way?
    – Pacerier
    Jun 8, 2015 at 23:15
  • This extension doesn't seem to exist anymore. 🤷‍♂️ Apr 4, 2021 at 5:05
6

Copy All Urls seem to be the most popular extension of those doing exclusively the copy/paste/export job (13,725 users at the time of writing).

0
5

I like TabCopy for this -- exports the list of open tabs to format of your choice, including Markdown. Will copy current window or all windows, can include Page titles, ignore pinned tabs. Nice interface.

TabCopy Example

2

There is one even better, There's an extension called Save & Email My Tabs Which lets you do exactly that. U just enter an email (yours in this case) and you get an URL that opens back all your tabs

3
  • Note that if the only reason you're on this site is advertising an extension that (maybe) you developed, your account may be suspended for excessive self-promotion. So, if you're affiliated, please just say that, and try to help out otherwise as well. Thanks.
    – slhck
    Mar 30, 2012 at 8:10
  • 1
    Ya i developed it but it's a better solution to the question. i don't see anything excessive about it as it's a relavent answer. But thanks for warning me any way :) Mar 30, 2012 at 13:53
  • Yeah, just mention it and that should be okay!
    – slhck
    Mar 30, 2012 at 14:48
1

If all you need are the domain - not the full url - simply copy Chromiums history: ctrl + h to open the history, copy the desired entries to a textfile.

I use this trick when I'm on different machines and don't have the time, patience or authority to install an extension.

Note that this doesn't work with full urls e. g. ChromeHistoryView in screenshot.

enter image description here

0

I created an extension Email All Tabs for that purpose - It let's you email the current tabs in your window. You can choose whether you just want the URL's or also the titles of each page. If a tab has a long URL, it will shorten it using goo.gl.

0

I found Export Tabs plugin to be quite simple, intuitive and useful and it's one of those that just works!

P.S. I have no affiliations to this.

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.