If your new device cannot scan the QR code:
If you have no backup codes, no recovery phone, and no recovery email, you must go to accounts.google.com/signin/recovery . You will be asked:
: A 6-digit code offers 1,000,000 possible combinations , making the chance of a successful random guess less than one in a million. 6 digit verification code gmail portable
Choose the "call instead" option for a voice-delivered code if SMS is failing. Best Practices for Portable Security
. This makes your security "portable" as it works offline and on multiple devices. If your new device cannot scan the QR
If you travel without a smartphone, you can run open-source authenticator software (like KeePassXC or WinAuth) directly from a encrypted portable USB flash drive. Step-by-Step Setup Guide
If your primary phone is unavailable, Google can send the 6-digit code to a pre-configured secondary recovery email address. Best Practices for Portable Security
On the login screen, click "Try another way" to see if you can receive the code via an alternate email or a voice call instead of text.
It sounds like you're looking for a (e.g., a USB tool, offline generator, or lightweight script) to handle 6-digit verification codes for Gmail — likely for 2FA (two-factor authentication) or account recovery.