TOTP Generator
Generate Time-based One-Time Passwords for two-factor authentication
TOTP Generator
Configuration
Usage Examples
Standard TOTP
Generate a standard 6-digit TOTP code using a common Base32 secret key with SHA-1 algorithm.
Long Secret Key
Test TOTP generation with a longer 32-character Base32 secret for enhanced security.
RFC Test Vector
Use the RFC 6238 test vector secret to verify the TOTP implementation correctness.
Features
Time-Based Codes
Generates standard TOTP codes that automatically refresh every 30, 60, or 90 seconds
Multiple Algorithms
Supports SHA-1, SHA-256, and SHA-512 HMAC algorithms for code generation
Code Verification
Verify TOTP codes instantly to test your two-factor authentication setup
Fully Client-Side
All cryptographic operations happen in your browser using Web Crypto API, nothing is sent to servers
How to Use?
Enter or Generate Secret
Enter your Base32 secret key or click "Generate Secret" to create a random one.
View TOTP Code
The current TOTP code is displayed with a countdown timer showing remaining validity.
Copy or Verify
Copy the code to your clipboard or use the verify field to check if a code matches.
Frequently Asked Questions
What is TOTP Generator?
Setting up 2FA for your app and need to test TOTP codes? This tool generates RFC 6238 compliant time-based one-time passwords right in your browser. Enter a Base32 secret (or generate one), and watch the 6-digit code tick down in real time. Supports SHA-1, SHA-256, and SHA-512. No server involved, everything is computed locally via Web Crypto API.
Why Developers Use This Tool
When you are building 2FA, you need a way to verify your implementation without pulling out your phone every time. Enter the same secret here, confirm the codes match, and move on. You can also generate random secrets, grab the OTPAuth URI for QR code generation, and verify codes against the current window. All client-side, so your secrets stay private.