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:
- 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.
- Wait for a while until the data is synched, and then close all the Chrome windows.
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`
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.
- Exit Chrome.
Next, open a terminal and change to the newly created Chrome profile:
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'
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.
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