A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation
Microsoft Authenticator
I'm using the Microsoft Authenticator
Problem: the .gov website asks for 6-digit code. the authenticator generates 8-digits. Can this be changed?
Microsoft Security | Microsoft Authenticator
1 answer
Sort by: Most helpful
-
AI answer
2026-02-27T18:02:39.1566667+00:00 The number of digits in the one-time password (OTP) generated by Microsoft Authenticator cannot be changed in the app.
Microsoft Authenticator can generate different types of verification codes depending on how the account was set up (for example, as an OATH verification code vs. another provider’s format). Some services expect a 6‑digit TOTP, while others may use 8‑digit codes. If the .gov site specifically requires a 6‑digit code but the configured account in Microsoft Authenticator shows an 8‑digit code, that account entry in Authenticator is not compatible with the site’s expected format.
To resolve this, the account must be set up using the method and app type that the .gov site officially supports (often a specific authenticator app or a QR code/secret key that produces 6‑digit TOTP codes). Reconfiguration must be done on the .gov site’s security/MFA settings page; Microsoft Authenticator itself does not offer a setting to switch between 6‑digit and 8‑digit codes.
If the .gov site supports Microsoft Authenticator explicitly, re-add the account there and scan the new QR code into Authenticator; if it does not, use the authenticator app it recommends.
References:
- Microsoft Authenticator FAQs
- Authentication methods in Microsoft Entra ID - Microsoft Authenticator app
- Troubleshoot problems with Microsoft Authenticator
AI-generated content may be incorrect. Read our transparency notes for more information.