60

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.

Gareth
  • 19,080
Wern Ancheta
  • 6,620

10 Answers10

34

In 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 Manager
  6. click export bookmarks

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

EDIT:

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

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

... rest is the same

jcubic
  • 3,123
  • 4
  • 25
  • 23
29

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

nisetama
  • 1,109
20

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

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.

ruffin
  • 1,875
omnray
  • 737
6

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

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).

yurkennis
  • 557
1

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.

Greenonline
  • 2,390
MaduKan
  • 121
1

You don't need any plugins or extensions...

You just bookmark all tabs, and open bookmark manager, then first click (highlight) one link from the folder where you saved those tabs, and then ctrl+A to select all. and then just ctrl+C and paste the links anywhere you want.

kspr9
  • 11
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

somethis
  • 141
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.

Ari
  • 243