Help Center
Unlock with PIN
Unlock with PIN
You can set a PIN code as a method for unlocking your vault. PINs can only be used to unlock your Vault, you will still be required to use your master password and any enabled two-step login method when you log in.
If you're not sure of the difference, scroll down to Understanding Unlock vs. Log In.
note
After 5 failed PIN attempts, the app will automatically log out of your account.
Enable Unlock with PIN
Unlock with PIN can be enabled for the Bitwarden browser extension, mobile app, and desktop app:
Browser Extension
To enable Unlock with PIN for your browser extension:
Open the Settings tab.
Scroll down to the Security section and check the Unlock with PIN checkbox.
Enter the desired PIN code in the input box. Your PIN can be any combination of characters (a-z, 0-9, $, #, etc.).
tip
If you share your device, it's important to create a strong PIN by avoiding easily guessable digits like date of birth or by using a PIN that's more than 4 digits.
The pre-checked option Lock with master password on browser restart will require you to enter your Master Password instead of the PIN when your browser restarts. If you want the ability to unlock with a PIN even when the browser restarts, uncheck the option.
Once set, you can change your PIN by disabling and re-enabling Unlock with PIN.
When you log out of your browser extension, your Unlock with PIN settings will be wiped and you'll need to re-enable Unlock with PIN.
Mobile
To enable Unlock with PIN for your mobile app:
Open the Settings tab.
Scroll down to the Security section and tap the Unlock with PIN Code option.
Enter the the desired PIN code in the input box. Your PIN can be any combination of numbers (0-9).
tip
If you share your device, it's important to create a strong PIN by avoiding easily guessable digits like date of birth or by using a PIN that's more than 4 digits.
A dialog box will appear asking whether you want to require unlocking with your master password when the application is restarted. Tap Yes to require your Master Password instead of PIN when the app restarts. Tap No for the ability to unlock with the PIN when the app restarts.
Once set, you can change your PIN by disabling and re-enabling Unlock with PIN.
When you log out of your mobile app, your Unlock with PIN settings will be wiped and you'll need to re-enable Unlock with PIN.
Desktop
Unlock with PIN is set separately for each account logged in to the desktop app. To enable Unlock with PIN:
Open your Settings (on Windows, File → Settings) (on macOS, Bitwarden → Preferences).
Scroll down to the Security section and check the Unlock with PIN checkbox.
Enter the desired PIN code in the input box. Your PIN can be any combination of characters (a-z, 0-9, $, #, etc.).
tip
If you share your device, it's important to create a strong PIN by avoiding easily guessable digits like date of birth or by using a PIN that's more than 4 digits.
The pre-checked option Lock with master password on restart will require you to enter your Master Password instead of the PIN when the app restarts. If you want the ability to unlock with a PIN when the app restarts, uncheck this option.
Once set, you can change your PIN by disabling and re-enabling Unlock with PIN.
When you log out of your desktop app, your Unlock with PIN settings will be wiped and you'll need to re-enable Unlock with PIN.
note
If you turn off the Lock with master password on restart option, the Bitwarden application may not fully purge sensitive data from application memory when entering a locked state. If you are concerned about your device's local memory being compromised, you should keep the Lock with master password on restart option turned on.
Understanding Unlock vs. Log In
In order to understand why unlocking and logging in aren't the same, it's important to remember that Bitwarden never stores unencrypted data on its servers. When your Vault is neither unlocked nor logged in, your Vault data only exists on the server in its encrypted form.
Logging in to Bitwarden decrypts your Vault data to your device. In practice, that means two things:
Logging in will always require your Master Password, because your Master Password is the source of the key needed to decrypt your Vault data. Additionally, because decryption is an operation that needs to be protected, this stage is where any enabled Two-step Login methods would be required.
Logging in will always require you to be connected to the internet (or, if you're self-hosting, connected to the server), because you need access to the encrypted Vault in order to decrypt it.
Unlocking can only be done when you're already logged in. In other words, only when your Vault data is already stored (encrypted) on your device. Because your Vault is already downloaded and your decryption key stored in memory:
You don't need the decryption key derived from your Master Password, so you're free to use other access methods, like PIN codes and biometrics.
You don't need to be connected to the internet (or, if you're self-hosting, connected to the server).