What Is a 2FA Secret Key? Setup Keys, QR Codes and OTPs
A 2FA setup secret is private text supplied by the original service when you connect an authenticator. It generates future codes; it is not the short-lived number you enter during login. You need your own account’s setup secret to use this tool.
Setup secrets, verification codes and recovery codes
- Setup secret: the credential an authenticator uses to generate future codes. Anyone holding it can generate matching codes for that entry.
- Verification code: a short-lived number submitted during login, commonly six digits. It changes over time and cannot be used as a setup key here.
- Recovery code: a backup login credential issued by the original service. Use it through that service’s recovery flow, not in a TOTP generator.
Where to find your setup key
In the original service’s account security settings, choose to connect an authenticator. During setup you may see a QR code alongside an option such as manual entry, cannot scan or setup key. Labels vary; follow the service’s own instructions.
After setup, the service may no longer display the secret. If you can still sign in, check its authenticator replacement process. Confirm the new method works before removing the old one. Do not assume a website or support agent can retrieve your original secret.
Entering Base32 text or an otpauth URI
This tool accepts a Base32 setup secret using A–Z and 2–7; spaces are ignored. Pasting generates a code automatically. After typing a key, press Generate code. Plain secrets use SHA-1, six digits and a 30-second period.
You can also paste an otpauth://totp URI. It can carry the secret, account label, issuer and generation settings. This tool supports SHA-1, SHA-256 and SHA-512; six or eight digits; and integer periods from 1 to 300 seconds. It does not import otpauth://hotp, authenticator backups or migration formats.
Treat the setup QR code as a secret too
An authenticator setup QR code typically encodes a link containing the secret. Sharing a screenshot can therefore expose the secret itself. Do not upload it to public QR decoders, group chats or shared public documents.
The input on this site accepts text, not images. If your service only shows a QR code, use a trusted authenticator to scan it or look for that service’s manual setup option.
If the secret is lost or exposed
For a lost secret, check recovery codes or authenticator backups that you previously saved, then follow the original service’s recovery process. This site cannot recover the secret from an email address, username or verification code.
If a secret or setup QR code has been exposed, replace the authenticator binding through the original service so the old secret stops working. Review login activity and recovery options as well. Waiting for the current code to expire does not resolve an exposed setup secret.
Site data practices:Privacy · Google Authenticator — Key URI Format