How to Use the TOTP 2FA Secret Key & Code Generator
-
1
Click "Generate New 2FA Secret" to create a fresh 160-bit Base32 secret key.
-
2
Or paste an existing Base32 secret key from your application.
-
3
Watch the live 30-second countdown ring and current 6-digit verification code.
-
4
Copy the `otpauth://totp/...` URI for Google Authenticator or 1Password.
Practical Example & Use Case
Testing 2FA integration during backend development without having to grab your physical phone for authentication codes.
Technical Notes & Limitations
Calculates HMAC-SHA1 time-step hashes locally synchronized to your system clock.
Frequently Asked Questions
Is this compatible with Google Authenticator?
Yes, it implements standard RFC 6238 TOTP with 30-second time steps and 6 digits.