RFC 6238 TOTP 2FA Token Generator & Clock Drift Validator

Test Two-Factor Authentication (2FA) OTP tokens in your browser. Inspect Base32 secret keys, simulate 30-second time-step windows, test HMAC-SHA1/SHA256 algorithms, and validate client-server clock drift tolerance.Documentation & FAQs ↓

RFC 6238 TOTP 2FA Token Generator & Clock Drift Validator — Interactive Console
Runs locally in your browser • Instant output
Live RFC 6238 Passcode
24sWindow
899 160SHA-1 · 6 Digits · 30s Step

Clock Drift Verification Window

RFC 6238 authenticators tolerate ±1 step (±30s) clock synchronization skew between server and client.

Previous Window (-30s)Step #59713686
678 886
Current Active (0s)Step #59713687
899 160
Next Window (+30s)Step #59713688
029 245

Authenticator URI & App Pairing

Standard Key URI format supported by Google Authenticator, 1Password, Bitwarden, Authy, and Apple Passwords.

Standard otpauth:// URI

otpauth://totp/AnshuTechy:user%40anshutechy.com?secret=JBSWY3DPEHPK3PXP&issuer=AnshuTechy&algorithm=SHA1&digits=6&period=30

100% Client-Side. Secret never leaves your browser sandbox.

Advertisement

Step-by-Step Instructions

4 Steps to Completion
1Phase 1

Enter your Base32 secret key (e.g., JBSWY3DPEHPK3PXP) or generate a cryptographically random test seed.

2Phase 2

Select token parameters: 6 or 8 digits, 30-second time step, and HMAC-SHA1 (standard) or HMAC-SHA256.

3Phase 3

Watch the live token count down in real-time with an interactive circular progress gauge.

4Phase 4

Simulate client clock drift (-60s to +60s) to verify verification window tolerance in your backend.

Practical Use Cases & Real-World Scenarios

Debugging Failed 2FA Logins
Verify whether an authentication failure is caused by an invalid secret seed, algorithmic mismatch, or client phone clock drift.
Testing Custom 2FA Implementation in Apps
Software engineers can verify backend 2FA token generation against an independent, standards-compliant reference implementation.
Validating Backup Keys Before Setup
Verify that an exported 2FA alphanumeric backup secret generates identical 6-digit tokens before wiping an old authenticator app.
Related Editorial Guide on AnshuTechy10 Best Authenticator Apps for Android and iPhone in 2026
Read Tutorial →
Share With Your Community

Found this tool helpful? Share it with colleagues & friends:

100% free, private in-browser utility with zero server uploads.