User Agents

Web browsers and everyday web tech, explained

Bitwarden How to Lock Browser Extension

· 5 min read · Extensions

In this article
  1. Why Locking Matters
  2. Immediate Lock Options
  3. Configuring Auto-Lock
  4. Unlock Methods After Locking
  5. Common Problems and Misconceptions
  6. Lock vs Logout
  7. Security Considerations
  8. Frequently Asked Questions

To lock the Bitwarden browser extension immediately, click the Bitwarden icon in your browser toolbar, then click the gear icon (Settings) and select "Lock" from the menu. Alternatively, you can use the keyboard shortcut you've assigned, or simply close the browser or let the auto-lock timer expire. This article explains all the ways to lock the extension, how to customize auto-lock behavior, and answers common questions about vault security.

Why Locking Matters

Bitwarden stores your passwords, credit card numbers, and secure notes in an encrypted vault. When the extension is unlocked, anyone with access to your browser can view and copy those secrets without needing your master password. Locking the extension re-encrypts the vault in memory and requires your master password (or another unlock method) to access it again. This is a critical step if you share a computer, step away from your desk, or use a public device. Even on a personal machine, locking prevents casual snooping by family members or coworkers.

Immediate Lock Options

You have several ways to lock the extension right now:

  • Via the Settings menu: Click the Bitwarden icon, then the gear icon (bottom left), and choose "Lock". This works in all browser versions (Chrome, Firefox, Edge, Safari, etc.).
  • Keyboard shortcut: By default, Bitwarden assigns a shortcut (e.g., Ctrl+Shift+L on Windows/Linux, Cmd+Shift+L on Mac). You can change it in the extension's settings under "Keyboard shortcuts" (or in your browser's extension management page).
  • Right-click menu: Right-click the Bitwarden icon in the toolbar and select "Lock" from the context menu (if your browser supports it).
  • Auto-lock timer: Set a timeout so the vault locks automatically after a period of inactivity (see next section).

Configuring Auto-Lock

Auto-lock is the most convenient way to ensure your vault locks without you having to remember. To set it up:

  1. Click the Bitwarden icon, then the gear icon (Settings).
  2. Scroll to "Auto-lock" and choose an option from the dropdown: "On browser restart", "On tab close", "After 1 minute", "After 5 minutes", "After 15 minutes", "After 30 minutes", "After 1 hour", "After 4 hours", or "Never".
  3. If you select a time-based option, you can also enable "Lock on sleep" (if available) to lock when your computer sleeps.

Note: The "On tab close" option locks the vault when you close the browser tab that contains the extension popup, which is not the same as closing the browser window. For most users, a short inactivity timer (e.g., 5 or 15 minutes) is a good balance between security and convenience.

Unlock Methods After Locking

When the vault is locked, you can unlock it using your master password, or if you've enabled it, a PIN or biometrics (fingerprint/face) on supported devices. To set up these alternatives:

  • PIN: In Settings, under "Unlock options", enable "Unlock with PIN". You'll be asked to set a 4-6 digit PIN. After the vault locks, you can enter the PIN instead of the master password.
  • Biometrics: Enable "Unlock with fingerprint" (or face ID) on compatible browsers and operating systems. This is only available if your device supports it and the browser extension has permission.

Important: These methods are convenience features, not replacements for master password security. The master password is still required when you first log in or after a full logout.

Common Problems and Misconceptions

"I locked the extension but it still shows my passwords." If you see your vault items after locking, you may have actually logged out instead of locked. Logging out clears the vault from memory completely, while locking keeps the encrypted data but requires a PIN or password. Check the extension icon: if it shows a red "locked" badge, it's locked. If it shows a green "unlocked" badge, it's not.

"My auto-lock doesn't seem to work." Some browsers throttle background timers, especially for extensions. If you set a 1-minute auto-lock but it takes longer, it may be due to browser power-saving features. Try setting a shorter timer or use the manual lock option before stepping away.

"I forgot my master password." Bitwarden cannot recover your master password. If you forget it, you'll need to use the recovery code you saved during setup, or you'll lose access to your vault. Always store your recovery code in a safe place.

Lock vs Logout

Locking and logging out are different. Locking keeps the vault data on your device but encrypted, and you can unlock with a PIN or biometrics. Logging out removes the vault data from the device entirely, and you must enter your master password (and possibly your email) to log back in. Logging out is more secure on shared or public computers, but it's slower to re-authenticate. For daily use on a personal device, locking is usually sufficient.

Security Considerations

Locking the extension is a good habit, but it's not the only security measure. Use a strong, unique master password (at least 12 characters, mix of letters, numbers, symbols). Enable two-step login (2FA) on your Bitwarden account to protect against unauthorized access even if your master password is stolen. Also, be cautious about installing browser extensions from unknown sources—only use the official Bitwarden extension from your browser's official store.

Frequently Asked Questions

How do I lock Bitwarden on my phone?

On mobile apps, you can lock the vault by closing the app or using the auto-lock timer. In the app's settings, set "Auto-lock" to a time period or "On app restart". You can also manually lock by tapping the lock icon in the app's menu if available.

Does locking the extension log me out of websites?

No. Locking the extension only locks the Bitwarden vault. It does not log you out of websites you're already logged into. Your browser sessions remain active.

Can I lock Bitwarden automatically when I close the browser?

Yes, set the auto-lock option to "On browser restart" or "On tab close". However, "On tab close" refers to the tab that the extension popup is open in, not the entire browser window. To lock when the browser closes, use "On browser restart" or a short inactivity timer.

Why does Bitwarden lock so quickly?

If your auto-lock is set to a short time (e.g., 1 minute), it will lock quickly. Check your settings to adjust the timer. Also, some browsers may lock the extension when the system sleeps, even if you haven't set that option.

Is it safe to use a PIN instead of my master password?

Using a PIN is convenient, but it's less secure than the master password because a PIN is shorter and easier to guess. Only use a PIN on your personal, trusted devices. If you lose your device, an attacker could try to brute-force the PIN. Bitwarden has rate limiting to slow down attempts, but it's still a risk.