To add a passcode to Dropbox on an iPhone, open the Dropbox app, tap the Account tab (the person icon), tap the gear icon at the top of the screen, then tap Turn Passcode On under Passcode Lock. Enter a four-digit passcode, then enter it again to confirm.
This lock belongs to the Dropbox app only. It is separate from the passcode that unlocks your iPhone, so someone holding your unlocked phone still has to get past a second code before they can see your files. The steps below follow Dropbox’s passcode help article, which Dropbox last updated in March 2026.
Sign In to the Dropbox App
- You need the Dropbox app, signed in. The passcode is a setting inside the iPhone app. It cannot be set from dropbox.com.
- It works on every plan. Dropbox says the passcode instructions apply to all Dropbox customers.
- It is four digits. Dropbox calls it a four-digit passcode. Pick a code that is different from your iPhone passcode, because anyone who knows one would otherwise know both.
- It is set per device. A passcode on your iPhone does not lock Dropbox on your iPad, your computer, or the website.
How to Set a Passcode in the Dropbox iPhone App
Choose a code you will remember before you start. Ten wrong guesses in a row sign the iPhone out of Dropbox.

- Open the Dropbox app. You should see your files or the Home screen of the app.
- Tap Account, the person icon at the bottom of the screen.
- Tap the gear icon at the top of the screen. The Dropbox settings list opens.
- Under Passcode Lock, tap Turn Passcode On. Dropbox shows a number pad and asks for a new passcode.
- Type a four-digit passcode, then type the same four digits again to confirm. Choose something you will remember. Dropbox does not show the code to you later.
The passcode is now active. There is no extra save button to tap.
What Happens After You Set It
- Dropbox asks for the code often. You must enter the passcode every time you launch the app or return to it.
- Ten wrong tries sign you out. After 10 failed passcode attempts in a row, the iPhone is logged out of Dropbox. Your files stay safe in your account, but you have to sign in again with your Dropbox password.
- You can change the code. You can change your passcode from the same Passcode Lock settings.
How to Confirm It Worked
Leave Dropbox by going to the iPhone Home Screen, then open Dropbox again. A number pad should appear before any file names do. If the app opens straight to your files, go back to Passcode Lock and check that the passcode is turned on.
How to Change the Passcode or Turn It Off
Go back to Passcode Lock with the same steps (Account, then the gear icon). You can change the passcode or turn it off from that screen. Expect to enter your current passcode first.
Unlock Dropbox With Face ID or Touch ID
Typing four digits every time you switch apps gets tiring. Dropbox’s Face ID and Touch ID article says you can unlock the app with your face or fingerprint instead, but only after a passcode exists.
- Set a passcode with the steps above. Dropbox requires this first.
- Stay on the passcode screen. A Face ID or Touch ID switch now appears under the passcode lock section. Which one you see depends on your iPhone model.
- Turn that switch on.
- The next time you open Dropbox, a message asks whether Dropbox may use Face ID or Touch ID. Tap OK.
From then on, Dropbox unlocks with a glance or a touch. The four-digit passcode still exists underneath, so keep remembering it.
Another Option: Lock the Dropbox Icon With iOS
iPhones running iOS 18 or later have their own app lock that works with any app you downloaded, including Dropbox. It is an Apple feature, not a Dropbox one, and you can use it instead of the Dropbox passcode or along with it.

- Go to the Home Screen and find the Dropbox icon.
- Touch and hold the icon until the quick actions menu opens.
- Tap Require Face ID. On other iPhones this reads Require Touch ID or Require Passcode.
- Tap Require Face ID again to lock the app. Do not pick the hide option unless you also want the icon moved to the Hidden folder in App Library.
Apple’s guide to locking or hiding an app says a locked app needs Face ID, Touch ID, or your iPhone passcode to open, and that its contents stop appearing in places such as notification previews and search. The app locks again after you quit it. To undo this, touch and hold the icon and tap Don’t Require Face ID.
The main difference is the code. The iOS lock falls back to your iPhone passcode, so it does not stop someone who already knows that code. The Dropbox passcode is a separate number.
This is also why the iPhone passcode matters: turning off the passcode on an iPhone removes that fallback.
What to Do If You Forget Your Dropbox Passcode
Stop guessing before you reach 10 tries. Dropbox cannot show you a forgotten passcode, but it documents ways to clear it. Each one ends with you signing in to Dropbox again, so make sure you know your Dropbox account password first.
Log the iPhone Out From dropbox.com
- On a computer, log in to dropbox.com.
- Click your avatar, which is your profile picture or initials.
- Click Settings, then click the Security tab.
- Find your iPhone under Devices.
- Click the trash can icon next to it, then click Unlink.
Dropbox then asks you to log in the next time you open the app on that phone, and a passcode is not required. Its page on viewing your devices and logging out remotely adds that files you made available offline cannot be opened on the phone until you log in again. This is also the step to take if the iPhone is lost.
Reinstall the Dropbox App
You can also reset the passcode by uninstalling the app and installing it again. Uninstalling removes any files you marked for offline access from the phone. The files in your Dropbox account are not deleted. Use the usual steps to delete apps on an iPhone.
If Passcode Lock Is Missing
- Passcode Lock is missing. Make sure you tapped Account and then the gear icon at the top of the screen. If it is still missing, update the Dropbox app from the App Store.
- There is no Face ID or Touch ID switch. The switch only appears after a passcode is set. It also needs Face ID or Touch ID to be set up on the iPhone itself.
- Dropbox keeps asking for the code instead of Face ID. You may have declined the permission message. Open the iPhone Settings app, go to Face ID & Passcode > Other Apps, and turn on Dropbox.
- Dropbox signed you out. That is what happens after 10 wrong passcode attempts in a row. Sign in with your Dropbox email and password, then set a new passcode.
Protect the Account, Not Just the App
A passcode guards one app on one phone. It does nothing if someone learns your Dropbox password and signs in elsewhere. For that, turn on Dropbox’s 2-factor authentication, which asks for a security code in addition to your password.
2-factor authentication can only be set up on dropbox.com. Log in, click your avatar, click Settings, click the Security tab, and switch 2-factor authentication to On. You need a phone that can run an authenticator app or receive text messages. Dropbox also advises adding a backup phone number and saving your recovery codes so you are not locked out.
Neither protection limits files you have shared by link. Anyone with the link can open them, for example after you email a link to a Dropbox file.
Set the passcode, turn on Face ID or Touch ID so it is not a chore, and then close and reopen the app once to confirm the lock appears.
Once the app is protected, here is how to back up your iPhone videos to Dropbox automatically. To choose photos yourself, upload pictures from an iPhone to Dropbox. If you are watching your data plan, you can also stop Dropbox from using cellular data for uploads on an iPhone.
Dropbox Passcode Questions
Is the Dropbox passcode the same as my iPhone passcode?
No. The Dropbox passcode is a separate four-digit code that you create inside the Dropbox app, and it only locks that app. Your iPhone passcode unlocks the phone itself.
Does a passcode on my iPhone also lock Dropbox on my iPad?
No. Each device has its own passcode setting. On an iPad, tap the Settings tab at the bottom of the sidebar, tap Passcode Lock, and tap Turn Passcode On.
Can I use a longer Dropbox passcode?
The mobile passcode is four digits, and there’s no documented longer option. For stronger protection, add Face ID or Touch ID on the phone and turn on 2-factor authentication for the account.
Will I lose my files if I enter the wrong passcode 10 times?
Not from your account. The device is logged out after 10 failed attempts in a row. Everything stored in your Dropbox account is still there when you sign in again. Files only leave the account when you delete them, for example when you delete a picture from the Dropbox app on an iPhone.
Does the passcode protect my files on dropbox.com?
No. The passcode only applies to the Dropbox app on the iPhone where you set it. Your Dropbox password and 2-factor authentication protect the website and your other devices.

Matthew Burleigh is the founder, head writer, and editor of Solve Your Tech, which he launched in 2012. He has written technology tutorials since 2008 and worked in IT since 2003, including small-business support, IT management, and consulting. He holds Bachelor’s and Master’s degrees in Computer Science from Arizona State University.
Matthew writes practical guides for Windows, iPhone and iPad, Microsoft Office, Outlook, Google apps, and Android. Solve Your Tech’s guides are checked step by step against the device or app maker’s own documentation and tested on his own devices whenever he has the hardware or software, with clear steps, sources, and update dates.
Read more about Matthew and how Solve Your Tech writes and updates its guides, or report a correction.