Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I recently migrated from Windows7 to Kubuntu 10.0.4. In many ways, I'm loving the change. (I never knew it could be such a seemless process to write/test scripts!)

One of the few things that is causing me any hangup is that none of the passwords that were saved in my browser are available (obviously, since it's a completely separate installation). Is it possible to export my passwords from the Windows instance of Chrome and then import them into the Linux version?

share|improve this question

5 Answers 5

up vote 5 down vote accepted

As Neal said, the folder User Data is the one to look for. If you want a software solution try the extension Lastpass (or at the Google site). It allows you to save and restore password in Google Chrome as well as in Firefox, IE and Safari.

share|improve this answer
I've been using LastPass for 2 years and it works great! Got it on 6 browsers on 4 different OS's –  TheLQ Jul 17 '10 at 17:10
Lastpass looks perfect! Thanks! –  Jeffrey Blake Jul 17 '10 at 21:17
It seems that lastpass is not longer able to export the passwords to chrome -.- Is there already a new solution? –  MartinVonMartinsgrün Mar 2 '12 at 7:38
@mmm... This is almost a month after you asked, but I wanted to answer you: I don't think you need to export the passwords with Lastpass. Just install the extension onto whichever browser you use and they will be available. From any system. The passwords are stored in their encrypted vault, so you don't have to worry about any of that on your end. –  Jeffrey Blake Mar 30 '12 at 17:33

You can also use this standalone tool called chromepass http://www.nirsoft.net/utils/chromepass.html

ChromePass is a small password recovery tool that allows you to view the user names and passwords stored by Google Chrome Web browser.

There is a option to export into your keepass password manager too.

share|improve this answer
Perfect! I'm in the process of migrating to KeePass and this is just what I need. Thanks! –  Tim Lewis Aug 20 '13 at 17:28

You could try XMarks.

I'm fairly sure that if you just copied the profile (ie the stuff in C:\Users\Username\AppData\Local\Google\Chrome\User Data\Default)from Windows to Linux, you would get everything working correctly, without any export/ import.

share|improve this answer
+1 for identifying the file I'd need. –  Jeffrey Blake Jul 17 '10 at 21:17
The exact file where the passwords are stored is Login Data. –  chris-l Aug 26 '13 at 17:01
Latest versions of chrome don't store the actual passwords in that file anymore. On windows it uses the system credential storage and on Linux the system keyring is used. –  ccpizza Nov 12 '13 at 23:09
xmarks does not synchronize passwords anymore, gotta use lastpass –  arod Nov 29 '13 at 23:38

The recipe below is a Linux-only solution and was taken from this blog post.

To export your passwords to a human readable text file:

  1. Connect to your Google Account in Chrome Settings so that your passwords are synched with the Google cloud storage. Make sure that you have ticked Passwords in Advanced Sync Settings.
  2. Wait for a while until the data is synched, and then close all the Chrome windows.
  3. Start Chrome/Chromium using one of the command line below. This will launch Chrome with a custom profile folder without affecting your current chrome profile.

    ## for Chrome:
    google-chrome --user-data-dir=/tmp/chrome-tmp --password-store=basic`
    ## for Chromium:
    chromium --user-data-dir=/tmp/chrome-tmp --password-store=basic`
  4. Setup Google Synching for the new temporary profile and wait three or four minutes until everything is synced from the cloud, i.e. your bookmarks appear, extensions show up, the theme is applied, etc. Verify that the passwords are restored from the Google cloud by looking under Settings → Personal Stuff → Manage Saved Passwords. If they do not appear, then wait a couple of minutes more. Note: the fastest way to get to the stored passwords page in settings is to type password in the Search box in the top right.

  5. Exit Chrome.
  6. Next, open a terminal and change to the newly created Chrome profile:

    cd /tmp/chrome-tmp/Default
  7. Now, open the Login Data SQLite database using the sqlite3 command line utility and dump the logins table. For this to work, you need to have sqlite3 installed on your system.

    sqlite3 'Login Data'
  8. Next, at the SQLite prompt enter the commands below. For help on available commands type .help at the prompt.

    .mode csv               # other options are `html', `tabs', etc.
    .headers on
    .separator ","
    .output chrome_passwords.csv
    select * from logins;

Now you should have a file named chrome_passwords.csv containing all your Chrome passwords. To open it with LibreOffice, type:

    libreoffice --calc chrome_passwords.csv
share|improve this answer
copy paste: superuser.com/questions/655294/… and it doesn't show password in dump –  Vladimir Shmidt Nov 4 '14 at 10:31

I found a decision how to show all your passwords from Chromium. Tested on Ubuntu 14.04 and Chromium: Version 40.0.2214.111 Ubuntu 14.04 (64-bit). I used js script found early in search.

Output maked in format: url|login|pass


  1. Open in Chromium browser link to Chrome password manager: chrome://settings-frame/passwords

  2. Open console (F12) and insert this js code:

    var pm = PasswordManager.getInstance();
    var model = pm.savedPasswordsList_.dataModel;
    var pl = pm.savedPasswordsList_;

  1. After step 2 you will see all your passwords in Chromium Password manager Dialog.

  2. And now insert this part of js code in console:

    var item = pl.getListItemByIndex(i);
  1. Now you see all your passwords in format i described early.

  2. Write script on any language to import your passwords in browser like FireFox :)

  3. Profit.

Github: https://github.com/megmage/chrome-export-passwords

p.s. I Try to use all parts of code together, but it isnt work :(

update: Chrome API based version in GitHub.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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