Easy way to import/export passwords on Chrome/Chromium browser using flag switches

Either you have reinstalled your computer or simply wish to make a backup copy of your Chrome/Chromium browser passwords this article will help you to do just that. The Google Chrome/Chromium Import/Export feature is missing by default, mostly due to the security reasons.

In this tutorial you will learn:

  • How to export passwords
  • How to import passwords

import/export passwords on Chrome/Chromium browser

Import/Export passwords on Chrome/Chromium browser

Software Requirements and Conventions Used

Software Requirements and Linux Command Line Conventions
Category Requirements, Conventions or Software Version Used
System Any Linux distribution
Software Google Chrome / Chromium Browser
Other Privileged access to your Linux system as root or via the sudo command.
Conventions # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user

Import/Export passwords on Chrome/Chromium browser step by step instructions

  1. To export passwords start your Google Chrome/Chromium browser using command line and include the following flag switches to enable the password export facility. Please note that the actual path to the executable binary may be different. To check the executable path navigate to chrome://version/ using your browser:
    FOR GOOGLE CHROME:
    $ google-chrome-stable --flag-switches-begin --enable-features=PasswordImport --flag-switches-end
    FOR CHROMIUM:
    $ chromium --flag-switches-begin --enable-features=PasswordImport --flag-switches-end
    
  2. In the above step we have enabled the Import/Export password facility. Next, on your browser navigate to Settings-->Passwords, click on more options next to the passwords menu and export all your currently saved password to a file.


  3. On the computer where you wish to import the previously exported passwords start your browser by using the same flag switches as in the above Step 1. Here it is once again:
    FOR GOOGLE CHROME:
    $ google-chrome-stable --flag-switches-begin --enable-features=PasswordImport --flag-switches-end
    FOR CHROMIUM:
    $ chromium --flag-switches-begin --enable-features=PasswordImport --flag-switches-end
    
  4. Navigate to Settings-->Passwords, click on more options next to the passwords menu and import all passwords from the previously export file. All done.


Comments and Discussions
Linux Forum