Resolve Microsoft Authenticator Shows an Invalid QR Code [Guide]
Before trying the detailed solutions, check that you’re scanning the latest QR code displayed on the official Microsoft sign-in or security setup page.
Make sure your phone’s camera has permission to access Microsoft Authenticator, update the app, refresh the QR code, and verify that your phone’s date and time are correct.
Avoid scanning an expired QR code or one generated for a different authentication service.
Resolve Microsoft Authenticator Shows an Invalid QR Code

The Invalid QR Code error generally means Microsoft Authenticator cannot recognize or process the QR code you’re trying to scan. This can happen because the code has expired, the setup session is outdated, the wrong account setup option was selected, or the app is having trouble reading the code.
Let’s learn in detail!
1: Generate a Fresh QR Code
One of the most common reasons behind this error is an expired or outdated QR code.
When you begin setting up two-step verification, Microsoft generates a QR code that connects your account with the Authenticator app. If you leave the setup page open for too long, restart the process, or switch between browser tabs, the original code may no longer be valid.
To fix this, return to the Microsoft account security setup page on your computer. Sign in using your Microsoft account and navigate to the security information or two-step verification setup process.
When you reach the Authenticator app configuration screen, look for an option such as Set up a different way or Try again, depending on the page.
Start a fresh setup session and wait for Microsoft to generate a new QR code.
Now, open Microsoft Authenticator on your phone and scan the newly generated code.
Important: Don’t keep trying to scan an old QR code. Always use the latest code displayed during the active setup session.
2: Make Sure You’re Using the Correct Account Setup Option
Microsoft Authenticator supports different types of accounts, including personal Microsoft accounts and work or school accounts.
If you select the wrong account type during setup, the app may not accept the QR code you’re trying to scan.
Open Microsoft Authenticator on your phone and tap the Plus (+) button to add an account.
You’ll generally see options such as Personal account, Work or school account, and Other account, depending on your app version.
Choose the option that matches the account you’re configuring.
For example, if you’re setting up Microsoft 365 using your company’s email address, select Work or school account. If you’re adding a personal Outlook.com or Hotmail account, select Personal account.
Next, choose the option to scan a QR code and point your phone’s camera toward the code displayed on your computer.
Make sure you’re not selecting an unrelated option, such as adding a third-party account, when you’re following Microsoft’s dedicated account setup process.
3: Check Your Phone’s Camera Permissions
Microsoft Authenticator needs camera access to scan QR codes. If camera permissions are disabled, restricted, or incorrectly configured, the scanning process may not work properly.
On an Android phone, open Settings > Apps > Microsoft Authenticator > Permissions. Select Camera and change its permission to Allow only while using the app.
If you’re using an iPhone, open Settings, scroll down to Microsoft Authenticator, and make sure the Camera permission is enabled.
After changing the permission, close Microsoft Authenticator completely and open it again.
Return to the QR code setup screen and try scanning the code.
If your phone’s camera works in other applications but not in Microsoft Authenticator, checking the app-specific permission is particularly important.
4: Check Your Internet Connection
A weak or unstable internet connection can interfere with Microsoft Authenticator’s account setup and verification process.
Although scanning a QR code itself doesn’t always require an internet connection, connecting the account and completing the registration process generally requires network access.
Start by checking whether your phone is connected to a working Wi-Fi network. Open a browser and visit a website to confirm that your internet connection is working.
If you’re using Wi-Fi, temporarily switch to mobile data and try again. Similarly, if you’re already using mobile data, connect to a reliable Wi-Fi network.
If you have a VPN enabled, temporarily disconnect it and retry the setup. You can also turn Airplane Mode on and off to refresh your phone’s network connection.
Once your internet connection is stable, reopen Microsoft Authenticator and scan the QR code again.
5: Enter the Setup Code Manually
If scanning the QR code continues to show an error, try the manual setup option instead. Microsoft provides this alternative for situations where the phone’s camera cannot read the QR code properly.
On your computer, return to the Microsoft account setup page where the QR code is displayed. Look for an option called Can’t scan the QR image or a similar manual setup option.
Click it to reveal the account setup information, which may include a code and URL.
Now, open Microsoft Authenticator on your phone, tap the Plus (+) button, select the appropriate account type, and look for the option to enter the setup information manually.
Carefully enter the information displayed on your computer.
Once you’ve entered the required details, follow the on-screen instructions to complete the setup.
If you’re setting up a work or school account, your organization may use a different registration process. Follow the instructions provided by your administrator.
Note: Never share your setup code, QR code, or authentication details with anyone. These details can be used to connect an authenticator to your account.
6: Update Microsoft Authenticator to the Latest Version
An outdated version of Microsoft Authenticator can cause scanning and account registration problems.
Microsoft recommends using the latest version of the app for account setup. Therefore, check whether an update is available.
If you’re using Android, open the Google Play Store, search for Microsoft Authenticator, and check whether an Update button appears.
If you’re using an iPhone, open the Apple App Store, search for Microsoft Authenticator, and tap Update if an update is available.
After installing the update, restart the app and try scanning a newly generated QR code.
It’s also a good idea to restart your phone. This can clear temporary app glitches and help the updated version work properly.
7: Check Your Phone’s Date and Time Settings
Incorrect date and time settings can sometimes interfere with authentication and account verification.
For example, if your phone’s clock is significantly different from the actual time, certain security checks may not work as expected.
On Android, open Settings > System > Date & time. Depending on your phone manufacturer, this option may appear under General Management or Additional Settings.
Enable Set time automatically and Set time zone automatically, if available.
On an iPhone, open Settings > General > Date & Time and enable Set Automatically.
Once you’ve corrected the date and time, close Microsoft Authenticator and open it again.
Return to the account setup page, generate a fresh QR code, and try scanning it.
8: Try a Different Browser or Contact Your Administrator
Sometimes, the issue isn’t with Microsoft Authenticator itself. Your browser may have an outdated setup session, cached information, or a temporary loading problem.
To check this, close the current setup page and open a different browser, such as Microsoft Edge, Google Chrome, or Mozilla Firefox.
Sign in to your Microsoft account again and navigate to the security information page.
For work or school accounts, you can visit the official Microsoft Security Info page.
Start the Authenticator setup process again and scan the newly generated QR code.
If you’re still receiving the same error, your organization’s administrator may have restricted certain authentication methods or device registrations through Microsoft Entra policies.
In that situation, contact your IT administrator and explain that Microsoft Authenticator displays an Invalid QR Code error during registration.
For additional troubleshooting, you can also follow Microsoft’s official Authenticator troubleshooting guide.
FAQs
1. Why does Microsoft Authenticator say Invalid QR Code?
This error usually appears when the QR code has expired, the wrong account type is selected, or the app cannot properly recognize the code. Generate a new QR code and make sure you’re scanning it using the correct account setup option.
2. How do I fix Microsoft Authenticator when it won’t scan a QR code?
First, check your camera permissions and update Microsoft Authenticator. Next, generate a fresh QR code and try scanning it again. If that doesn’t work, use the manual setup option to enter the account information.
3. Can I set up Microsoft Authenticator without scanning a QR code?
Yes. Microsoft supports manual account setup for supported registration methods. On the computer, select Can’t scan the QR image and follow the instructions to enter the provided code and URL manually.
4. Does reinstalling Microsoft Authenticator fix the Invalid QR Code error?
Reinstalling may help if the app has corrupted files or installation problems. However, it’s better to try updating the app and checking camera permissions first. Before uninstalling, make sure you have another way to access your accounts and recover your authentication methods.
5. Why does Microsoft Authenticator keep rejecting my QR code?
This may happen if you’re using an expired QR code, selecting the wrong account category, or trying to register an account through an unsupported method. Start a fresh registration session and follow the instructions displayed by Microsoft.
6. Why does Microsoft Authenticator show an Invalid QR Code for my work account?
Your organization may have specific security policies that control how employees register authentication methods. If you’ve tried generating a new QR code and updating the app without success, contact your company’s IT administrator.
7. Is Microsoft Authenticator QR code setup safe?
Yes. Microsoft uses QR codes to securely connect your account with the Authenticator app. However, only scan QR codes generated through the official account security or organization registration page. Never share your QR code or setup credentials with anyone.
Summary
The Microsoft Authenticator Invalid QR Code error can usually be resolved by refreshing the QR code, selecting the correct account type, checking camera permissions, and updating the application.
If scanning still doesn’t work, try entering the setup information manually or using another browser to restart the registration process.
For work and school accounts, remember that your organization’s security policies may also affect account registration.
If none of these solutions works, contact Microsoft Support or your IT administrator for additional assistance.
