Skip to main content

PyPI version Downloads

ffpass-next - Import and Export passwords for Firefox Quantum

The latest version of Firefox doesn't allow to import or export the stored logins and passwords as a file.

This tools interacts with the encrypted password database of Firefox to provide these features.

Installation

ffpass-next requires Python 3.6+ and will work with Firefox 58+

pip install ffpass-next

Features

  • Supports master passwords
  • Automatic profile selection for Linux, macOS and Windows
  • Export to CSV
  • Import from CSV compatible with Google Chrome
  • Update existing passwords

Note: Firefox must be closed during the whole process, as these actions change its database. Note: If you have Sync enabled, you'll have to disconnect and reconnect your Firefox account after importing the passwords.

Export to CSV

ffpass-next export > passwords.csv
ffpass-next export -f passwords.csv
ffpass-next export --file passwords.csv

Usage

usage: ffpass-next export [-h] [-t TO_FILE] [-d DIRECTORY] [-v]

outputs a CSV with header `url,username,password`

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  file to export password (defaults to stdout)
  -d DIRECTORY, --directory DIRECTORY, --dir DIRECTORY
                        Firefox profile directory
  -v, --verbose

Import from CSV

ffpass-next import < passwords.csv
ffpass-next import -f passwords.csv
ffpass-next import --file passwords.csv
ffpass-next import --file passwords.csv --overwrite

By default, it works with the passwords exported from Google Chrome.

Usage

usage: ffpass-next import [-h] [-f FROM_FILE] [-d DIRECTORY] [-v] [--overwrite]

imports a CSV with columns `url,username,password` (order insensitive)

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  file to import from (defaults to stdin)
  -d DIRECTORY, --directory DIRECTORY, --dir DIRECTORY
                        [Firefox profile directory](https://support.mozilla.org/en-US/kb/profiles-where-firefox-stores-user-data#w_how-do-i-find-my-profile)
  -v, --verbose
  --overwrite           overwrites existing passwords

Formatting

For CSV files not exported from Google Chrome, take these formatting rules into consideration:

  1. The CSV must have the headers "url", "username", "password", "httpRealm", "formSubmitURL","usernameField","passwordField". Any other columns will be safely ignored.
  2. The url must be formatted to include all prefixes ("http://", "https://", etc), or ffpass will not be able to read them correctly.
  3. ffpass-next does not care if the CSV has quotes around fields, even if some fields have them and others don't.

Transfer from Google Chrome to Firefox

Now, Firefox can more accurately import logins saved in Chrome/Chromium on Windows and macOS (including timestamps, deduping, http auth. logins, etc.) so you don't need to use this tool on those operating systems. See File > Import from Another Browser… in Firefox to import.

Export from Google Chrome

  1. Open Chrome and enter the following in the address bar: chrome://flags/#PasswordExport
  2. Click Default next to “Password export” and choose Enabled.
  3. Click Relaunch Now. Chrome will restart.
  4. Click the Chrome menu in the toolbar and choose Settings.
  5. Scroll to the bottom and click Advanced.
  6. Scroll to the “Passwords and forms” section and click “Manage passwords”.
  7. Click next to Saved Passwords and choose Export.
  8. Click Export Passwords, enter the password you use to log in to your computer, and save the file to passwords.csv (or any other available name).

(instructions from https://support.1password.com/import-chrome/)

Import in Firefox

  1. Stop Firefox
  2. Import into Firefox:
ffpass-next import --file passwords.csv

Restart Firefox, making sure it didn't leave any process still open.

Transfer from Firefox to Google Chrome

Export from Firefox

  1. Stop Firefox
  2. Export from Firefox:
ffpass-next export --file passwords.csv

Import in Google Chrome

  1. Open Chrome and enter the following in the address bar: chrome://flags/#PasswordImport
  2. Click Default next to “Password import” and choose Enabled.
  3. Click Relaunch Now. Chrome will restart.
  4. Click the Chrome menu in the toolbar and choose Settings.
  5. Scroll to the bottom and click Advanced.
  6. Scroll to the “Passwords and forms” section and click “Manage passwords”.
  7. Click next to Saved Passwords and choose Import.
  8. Select the file passwords.csv and click Import.

Troubleshoot

  • ffpass export: error: the following arguments are required: -d/--directory/--dir

    It means one of the following (launch with option --verbose to know):

    • Automatic profile selection is not supported for your platform.
    • There is more than one user profile for Firefox.

    You have to provide the --dir option with your Firefox Profile Folder. To find it, follow these instructions on the website of Firefox.

  • Firefox password database is empty. Please create it from Firefox.

    It means that Firefox currently doens't store any password. ffpass cannot create the password database for security reasons. Just add one password manually to Firefox to create the database.

  • TypeError: 'PosixPath' object is not iterable

    See #17.

  • Empty url field ("example.com") in Firefox after importing: the urls of the source csv file must begin with a scheme (http://, https://, ftp://, etc…)

  • Passwords do not sync to other devices, including Lockwise app.

    Importing passwords break the sync. You'll have to disconnect the Firefox account in the Sync options and the re-add it.

Credits

  • Thanks a lot to Louis Abraham @louisabraham. We created a fork to keep maintaining this library.

Metadata

Release files for ffpass-next 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ffpass-next 0.1.2
File Size Uploaded
ffpass-next-0.1.2.tar.gz 9.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ffpass-next 0.1.2
File Interpreter ABI Platform
ffpass_next-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 18.2 kB

Release files / ffpass-next-0.1.2.tar.gz

Download URL ffpass-next-0.1.2.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5b6da6e6d24534a29595e0a490315b97d519ca9af52f745e35bfed007eecf4cf
BLAKE2b-256 checksum
How to use checksums
a9d9d2157e1f3ea4377a4c2467f916a272c662a739fc0213275c4bd615133d95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / ffpass_next-0.1.2-py3-none-any.whl

Download URL ffpass_next-0.1.2-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5fbd9dbbd2cb72ccef9e9868a92c42f8964f2939e135795d76782284cac88333
BLAKE2b-256 checksum
How to use checksums
210e77b57161537967dedb0ef68b36ed88b4491f656cf74543102d10c899fdc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page