TOTP / 2FA Code GeneratorMembers
Turn a Base32 secret or otpauth:// URI into live authenticator codes — RFC 6238 compatible with Google Authenticator and Authy.
Enter a secret to begin
Paste a Base32 secret or an otpauth:// URI on the right, and your live code will appear here.
Current code
Next: ------
How TOTP works
The same standard your authenticator app uses — computed here, on your own device.
Shared secret
When you enable 2FA, the service shares a Base32 secret with your app (via that QR code). Both sides keep the same secret.
Time counter
The current Unix time is divided by the period (30s) to get a counter that both sides can compute independently — no network needed.
HMAC & truncate
An HMAC-SHA1 of the counter is dynamically truncated (RFC 6238) to the final 6-digit code that expires every period.
Private by design. Codes are computed locally with the browser's Web Crypto API. Your secret never leaves your device and we never see it.
Frequently Asked Questions
What is a TOTP code? ▼
What can I paste in the secret box? ▼
otpauth://totp/... URI — the same string encoded in a setup QR code. If you paste a URI, the secret, digit count and period are read from it automatically.