2FA Code Generator
Enter your 2FA secret key and get the current 6-digit TOTP code with a live countdown.
Enter 2FA Secret Key
Last 5 Keys
No history yet
Enter a key on the left to get your code
Your Authentication Code
000 000
Expires in:
30s
Copied!
Summary
Enter your 2FA secret key and get the current 6-digit TOTP code with a live countdown.
How it works
- Enter your 2FA secret key in the input field.
- The 6-digit code appears immediately with a countdown timer.
- Click "Copy Code" to copy the current code.
- The code refreshes automatically every 30 seconds.
- Previous keys are saved in your browser history for quick access.
Use cases
- Access a 2FA code without your phone nearby.
- Test TOTP integrations during development.
- Retrieve a backup code when your authenticator app is inaccessible.
- Quickly switch between multiple 2FA accounts via the history list.
Frequently Asked Questions
Related tools
Last updated: 2026-06-02 ·
Reviewed by Nham Vu