Prepare two-factor backup codes before you need them
A backup code may replace a second sign-in factor. Store it so that losing your phone does not also remove the backup.
In this guide
Some services issue one-time recovery codes. These are different from the short-lived six-digit codes in an authenticator app. Availability and what a code can replace depend on the provider.
Obtain codes from the account settings
Open the service independently and find its security or two-step verification settings. Only codes issued by that service will work: do not create your own in a random generator.
If codes are unavailable, check for another recovery route, such as a second security key or the official recovery process. Consult the administrator for work accounts.
Store them independently of the phone
A printout in a secure place or a protected digital vault can work, provided you can access it without the lost phone. A screenshot stored only on that phone does not solve the problem.
Label the service and set creation date. Do not add the account password to a loose note or send codes through chat, support forms or this website. Someone obtaining them may use them to sign in.
Track used or replaced sets
Mark one-time codes as used. Creating a new set may invalidate the previous one, as it does for Google. Replace all your stored copies after regeneration rather than keeping several unlabelled sets.
Replace lost or disclosed codes through account settings. Deleting a photo does not revoke the codes at the provider.
Test without locking yourself out
Check that you can find the current set from another trusted device. If testing sign-in, retain a trusted session and your normal sign-in method. Do not disable two-factor authentication just to test recovery. The recovery plan records preparation status without asking for the actual codes.