Fix Microsoft Authenticator 9-Character Limit in Code Field
Question details
Users cannot enter standard 32-character or 52-character secret keys during manual account setup because the application restricts the input field.

- Product
- Microsoft Authenticator
- Device & OS
- not provided
- Scenario
- Setting up Multi-Factor Authentication (MFA) manually using a text-based secret key instead of scanning a QR code.
- Observed behavior
- The manual Code field strictly limits input to exactly nine characters, preventing the user from pasting or typing longer secret keys required for authentication.
Ensure you have access to a computer screen or a secondary device to display your MFA setup QR code, as scanning is the most reliable workaround for this limitation.
Use QR Code Setup Instead of Manual Entry
Scanning a QR code completely bypasses the manual text entry limitations and automatically configures long secret keys.
The manual entry limitation is a design restriction in certain versions of the Authenticator app. The officially recommended method for setting up MFA is to use the camera scanner, which captures the entire encryption key instantly without character limits.
Open the Microsoft Authenticator app on your mobile device and tap the '+' icon in the upper right corner to add a new account.
Choose the appropriate account type, such as 'Work or school account' or 'Personal account', depending on the service you are trying to link.
Tap 'Scan a QR code' instead of selecting the manual code entry option.
Point your device's camera at the QR code displayed on your computer screen. The app will automatically read the long secret key and add the account to your list.

Request an Alternative Authentication Method
If scanning a QR code is not possible, your IT administrator can provide a different verification method.
Switch to WPS Office for a Hassle-Free Experience
If Microsoft 365 authentication and account setups are slowing down your workflow, consider switching to WPS Office. It provides a lightweight, highly compatible alternative to Microsoft Office without complex setup barriers, allowing you to focus on your work instantly.

Frequently Asked Questions
Why does Microsoft Authenticator limit the manual code to 9 characters?
This is a specific design restriction intended to simplify manual input for certain Microsoft account flows. However, it does not support the longer 32- or 52-character secret keys often required by third-party services.
Can I copy and paste a long secret key to bypass the limit?
No, the 9-character limit is hardcoded into that specific field in the app. It will truncate any pasted text that exceeds nine characters.
What if my mobile device camera is broken and I cannot scan a QR code?
If your camera is broken, you can try using a different authenticator app that supports long manual keys (like Google Authenticator or Authy) if the service allows it, or contact your IT admin to set up phone/SMS verification instead.




