Get a Microsoft account recovery code
Technical Terrence · November 21, 2026
A recovery code is a 25-digit backup key for your personal Microsoft account. If you lose your phone or forget your password, it can get you back in. It’s worth doing now, while you can still sign in.

Create one:
- Go to Manage how I sign in at account.live.com/proofs/manage/additional and sign in.
- Scroll to Recovery code and select Generate a new code.
- Print it or write it down, and keep it somewhere safe.

Microsoft says not to store the code on a device you use to sign in to the account. A printed copy in a drawer or safe works.
As soon as you make a new code, any older code stops working. You also can’t look up an old code later, so if you lose it, just make a new one.
Use it: On the sign-in page, enter your username, then select Other ways to sign in > Use my password > Forgot password? > Use a different verification option > I don’t have any of these. When asked for a recovery code, enter it. Spaces and dashes don’t matter. Then set a new password. The screens can vary a bit by account.
Locked out without a code? See Locked out of your Microsoft account? How to get back in.
Last updated: November 21, 2026