Phone passcode generator

A randomly generated 8+ digit passcode makes it much harder for the cops to break into your phone.

Randomly generated passcode
Number of digits

This passcode is made on your device and is never sent to us. You can save it in your password manager (but not your notes app or screenshots). If you write it on paper, destroy it after you memorize it.

Set your phone passcode to 8 to 10 random digits

It takes years for cops to crack an 8-digit random passcode. They can probably guess your current passcode in less than 5 minutes with automated tools.

DO: Use your password manager or our built-in passcode generator to create a random 8 to 10-digit code
DO NOT: Use any passcode you thought of yourself (dates, patterns on the keyboard, etc.). If possible, do not use 6-digit passcodes.

How to change your passcode

  1. Select a random passcode that is 8 to 10 digits long. The most secure way to generate a random passcode is to use your password manager's random password generator feature (set it to numbers only), but you can also use our passcode generator. (Humans are bad at making up random passcodes, so we suggest not trying to think of one yourself.)

  2. Change your passcode:

  3. Practice the new passcode at least 10 times in a row right now so you are more likely to remember it. (Disabling face/fingerprint unlock will force you to enter the passcode every time you open your phone.)

  4. Write your new passcode on paper and keep it somewhere safe at home until you've memorized it. Then destroy it after 2–3 weeks. Setting a reminder on your phone can help.

How long does it take to crack a passcode?

TypeTime it takes to crack (average)Example
6-digit easy-to-guess patternLess than 24 hours to crack333666 (common pattern) or 110582 (date pattern for Nov 5, 1982)
6-digit random code200 days to crack238253
8-digit random code40+ years to crack34780026

Note: These times only apply to phones. Computers can be cracked much more quickly, and need much stronger passwords.

Sources: The estimates in the table above assume real-world observed attempts/second from police forensic hacking tools. If you need more security, use a 10-digit passcode, which will protect you even under the highest-possible cracking scenarios. See the sources linked in the passcode FAQ here.