2FA Code Generator
Generate the current time-based one-time password from a Base32 setup key.
Runs on your device. Nothing you add is uploaded.
seconds
Your result shows here after you press “Get current code”. Nothing leaves your device.
How to use 2FA Code Generator
- Enter the account's Base32 setup key.
- Match the algorithm, code length, and period to the account settings.
- Select Get current code and use the result before it expires.
Questions
Which settings should I start with?
Most services use SHA-1, six digits, and a 30-second period. Use the settings supplied by your account.
Why might the account reject a code?
Check that the device clock is synchronized, the code is current, and the setup key and settings match.
How this works
Implements RFC 6238 with the device clock and Web Crypto HMAC.
Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. Your last settings are kept in this browser so the tool opens the way you left it. Privacy
Related tools
More in Hashing & securityHMAC Generator
Calculate an HMAC from a message and secret key using SHA-1, SHA-256, or SHA-512.
Base32 Decode
Decode RFC 4648 Base32 into UTF-8 text.
Password Strength Checker
Check a password for short length, common phrases, sequences, and repetition on your device.
Bcrypt Generator
Create a bcrypt password hash with a fresh salt and a cost factor you choose.