Fix Microsoft Authenticator Showing 8-Digit Code Instead of 6
Question details
The user is unable to log in because their authenticator app is generating an 8-digit code for a sign-in service that only accepts 6 digits.

- Product
- Microsoft Authenticator
- Device & OS
- not provided
- Scenario
- Attempting to log into an account using multi-factor authentication after migrating or upgrading to a new mobile phone.
- Observed behavior
- Microsoft Authenticator displays an 8-digit verification code instead of the required 6-digit code, causing authentication failure.
Ensure you have access to a backup authentication method, such as a secondary email address or SMS text messaging, before attempting to reconfigure your authenticator app.
Remove and Re-register Your Authenticator Account
The most reliable way to fix code length mismatches caused by incomplete cloud backups is to completely remove and re-add the account.
When transferring Microsoft Authenticator to a new phone via backup, work and school accounts often require re-verification. If not properly restored, the app may default to a different token standard, resulting in an 8-digit code instead of the required 6-digit one.
Open the Microsoft Authenticator app on your new phone, tap on the account showing the 8-digit code, tap the gear icon or menu in the top right, and select 'Remove account'.
On a computer, navigate to your organization's security info page (e.g., mysignins.microsoft.com) and log in using an alternative method like SMS verification.
Locate the old Microsoft Authenticator entry in your list of sign-in methods and click 'Delete' to prevent conflicts.
Click 'Add sign-in method', choose 'Authenticator app', and follow the prompts to scan the new QR code with your phone.

Contact Your IT Administrator for an MFA Reset
If you do not have a backup sign-in method configured, you will need administrative assistance to regain access to your account.
Switch to WPS Office for a Hassle-Free Experience
If you are frequently frustrated by complex Microsoft 365 login requirements, multi-factor authentication lockouts, and sync issues, WPS Office offers a powerful, local-first alternative. Enjoy a familiar interface and seamless offline editing without constant sign-in hurdles.
- 1. Download the software: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install WPS Office: Run the downloaded installer and follow the simple on-screen instructions to complete the setup.
- 3. Start editing instantly: Open WPS Office and start viewing, editing, or creating your documents immediately without dealing with complex account verifications.

Frequently Asked Questions
Why is my Microsoft Authenticator showing 8 digits instead of 6?
An 8-digit code usually appears when an account is incorrectly restored from a cloud backup after migrating to a new phone, or if the app misidentifies a work/school account as a personal account which uses different security protocols.
Can I manually change the code length in the Microsoft Authenticator app?
No, the code length (6 or 8 digits) is determined by the server-side configuration of the account you are trying to access. It cannot be manually toggled in the app settings.
What should I do if I am completely locked out and have no backup method?
If you do not have an alternative sign-in method like an SMS number or secondary email linked to your account, you must contact your organization's IT administrator. They have the necessary tools to revoke your old sessions and allow you to register a new device.




