How To Use KeePassXC with Firefox

After having installed KeePassXC on Windows 10, and followed the convenient user guide to store our first password, it’s now time to learn how to use KeePassXC with Firefox.

Even though you can safely store all kinds of accounts, passwords and notes in KeePassXC, it’s likely that the majority of what you will store are usernames and passwords for various internet accounts. And most of those accounts will be accessed through a browser. Wouldn’t it be nice if there was a handy way to automatically fill out online login forms with the account information stored in KeePassXC?

Well, you’re in luck, because there is.

With a handy browser extension installed, your browser can automatically discover that you’re trying to log in to an online account which username and password is stored in KeePassXC. The extension will pull the information it needs from the password manager, and you can log in with a simple click of the mouse.

I’ll cover how to use KeePassXC with Firefox in this guide. Why Firefox? Because it’s a fast and reliable, open-source browser with built-in privacy features, and that’s just the way I like my browsers. There’s a good chance you’re using Chrome, which is quite the opposite; a secretive, proprietary, closed-source browser controlled by Google, a company that earns its living by violating your privacy. You should dump Chrome. And while you’re at it, you should also dump Google.

But I digress. Let’s see how we can use KeePassXC with Firefox before it happens again.

Installing the KeePassXC extension in Firefox

  1. If you haven’t done so already, the first thing you should do is to download, install, and launch Firefox.
  2. Go to the KeePassXC-Browser extension web page. When installing a password manager browser extension, it’s extremely important that you install the correct one. There are unofficial versions of the extension floating around on the web, and those versions will steal your passwords. Verify that the extension you are about to install is created by the “KeePassXC Team”, and that it has a lot of users and reviews. What you see on the extension web page should be similar to the screenshot below.
  1. Click the “+ Add to Firefox” button.
  2. The extension will ask for a lot of different permissions, but that is normal. Click the “Add” button. This will install the extension.
  1. After the extension is installed, a KeePassXC icon should appear in the top right corner of the Firefox window.
  2. You’ll also see a popup confirming that the extension has been successfully installed. Click the “OK, Got it” button to dismiss the popup.

Connecting Firefox with KeePassXC

Now that the KeePassXC extension is installed in Firefox, we need to connect the extension with the KeePassXC application. First we need to configure KeePassXC to allow browser extensions to interact with the password manager.

  1. In the KeePassXC application (not the browser extension we just installed), select “Tools” from the menu, then select “Settings”.
  2. On the settings screen, select “Browser Integration” from the list on the left.
  3. Next, check the “Enable browser integration” checkbox, and then check the “Firefox and Tor Browser” checkbox. Your KeePassXC browser integration settings should look similar to the screenshot below.

  1. Return to Firefox, and click on the KeePassXC icon in the top right corner of the Firefox window.
  2. Then click the “Connect” button.
  1. A KeePassXC box like the one below will appear. Enter a unique ID, like “firefox”, for the connection between KeePassXC and the browser extension. Then click the “Save and allow access” button.

And that’s all there is to it. Firefox is now connected to KeePassXC.

When you browse to any site with a login form, you should now see a KeePassXC icon in the username form field. If you click on the icon, the KeePassXC extension will try to find stored credentials that belong to the site you’re visiting. If credentials are found, the extension will automatically fill in the username and password fields for you.

Final Thoughts

Using a browser extension is convenient, but it isn’t really necessary. You can simply copy credentials from KeePassXC and paste them into the login forms whenever you need them.

In fact, a browser extension might even be a security risk. Back in September last year, security researchers revealed a bug in the LastPass browser extension. The vulnerability made it possible for websites to steal credentials for the last account the user logged into using the LastPass Chrome or Opera extension. This is not an isolated incident either, other password manager extensions have had similar vulnerabilities.

So while the user experience is a lot smoother with a browser extension, you should probably do a risk assessment before you install one. Maybe interacting with KeePassXC directly is good enough for you?


This post has no feedback yet.

Do you have any thoughts you want to share? A question, maybe? Or is something in this post just plainly wrong? Then please send an e-mail to vegard at vegard dot net with your input. You can also use any of the other points of contact listed on the About page.


It looks like you're using Google's Chrome browser, which records everything you do on the internet. Personally identifiable and sensitive information about you is then sold to the highest bidder, making you a part of surveillance capitalism.

The Contra Chrome comic explains why this is bad, and why you should use another browser.