Home › Tools › Security & Privacy › TOTP Code Generator
🛡️ Security & Privacy

TOTP Code Generator

"Generate time-based one-time passwords for testing 2FA — entirely in your browser."

generatorsecuritydeveloper
❓ FAQ 📖 Guide 💡 Tips
Advertisement

Enter the Base32 secret key from your 2FA setup (the string shown alongside the QR code)

What is TOTP?

Time-based One-Time Passwords (TOTP, RFC 6238) are the codes used by Google Authenticator, Authy, and similar 2FA apps. They are calculated from a shared secret and the current Unix time, changing every 30 seconds. This tool is for developers testing 2FA implementations — it generates the same codes as your authenticator app for any given secret key.

Enter a TOTP secret key and generate the current 6-digit code, plus upcoming codes, entirely in your browser with no server involved. Shows the remaining validity window and regenerates automatically. Useful for developers testing 2FA implementations without a phone.

📦 Recommended Resources

Handpicked books and tools to go deeper — links may earn a small commission at no extra cost to you.

Advertisement
☕ Buy me a coffee