How to Generate TOTP Codes
Step-by-step guide to generating time-based one-time passwords for testing two-factor authentication using the DevHexLab TOTP Generator.
Tool Used
TOTP Code Generator
1
Open the TOTP Generator
Navigate to /tools/security/totp-generator.
2
Enter the TOTP secret
Paste the Base32 secret key provided by your authentication service. This is the same value encoded in the QR code shown during 2FA setup.
3
See the current code
The tool displays the current 6-digit TOTP code and a countdown showing how many seconds remain before it rotates. Codes refresh every 30 seconds by default.
4
Use for testing
Use this to verify that your application's 2FA verification logic is working correctly during development without needing a real authenticator app.
All done!
You are ready to use TOTP Code Generator like a pro.