TOTP Generator: Test and Recover 2FA Codes, Private
Make two-factor codes from a secret key.
Enter a Base32 secret, or the otpauth:// link an authenticator’s QR code holds, and see the code it gives now and the next one, the way an authenticator app does (RFC 6238: SHA-1, SHA-256 or SHA-512, 6 to 8 digits, 30 or 60 seconds, in Options). Press the code, or C, to copy it. It is meant for developers testing a sign-in and for checking a recovery secret you saved. It is not a place to keep your real second factor: nothing is saved, a browser tab can be lost, and a secret kept beside your password defeats the point of having two. The secret is used on your device and never sent.
How to use One-time codes
- Enter the Base32 secret key, or the otpauth:// link an authenticator’s QR code holds.
- Read Code now and Next code; change the algorithm, digits or period in Options only if the service says so.
- Press the code, or C, to copy it.
One-time codes: common questions
Is it safe to enter a 2FA secret into an online TOTP generator?
In Hoglet the secret is used in your browser, through its Web Crypto API, and never sent or saved. Even so, One-time codes is for testing a sign-in or checking a recovery secret, not for keeping a real second factor.
Which TOTP settings does the one-time code generator support?
One-time codes follows RFC 6238 with SHA-1, SHA-256 or SHA-512, 6 to 8 digits and 30 or 60 second periods. Nearly every service uses SHA-1, 6 digits and 30 seconds; an otpauth:// link sets these itself.
Can I use a TOTP generator instead of an authenticator app?
Not for everyday sign-ins. One-time codes saves nothing and a browser tab can be lost, and a secret kept beside your password defeats the point of a second factor, so keep using an authenticator app.
Everything stays on your device. Nothing is uploaded. Works offline once your first visit has stored the app.