TOTP 2FA Code Generator
Generate live RFC 6238 6- or 8-digit TOTP authenticator codes from Base32 secrets or otpauth:// URIs locally.
Related security tools
All Security toolsPassword Generator
Generate high-entropy passwords or passphrases using browser Web Crypto randomness.
Hash Generator
Compute MD5, SHA-1, SHA-256, SHA-384, and SHA-512 checksums for text or files.
Passphrase Generator
Generate memorable Diceware-style word passphrases with Web Crypto entropy calculation.
Text Redactor
Automatically detect and mask emails, phones, cards, SSNs, IPs, tokens, and custom terms.
About TOTP 2FA Code Generator
Compute live RFC 6238 6- or 8-digit TOTP 2FA verification codes from Base32 secrets or otpauth:// URIs with a countdown bar and setup QR code.
How to use TOTP 2FA Code Generator
- 1
Paste a Base32 2FA secret key or an otpauth://totp/ URI (or generate a fresh secret).
- 2
Confirm digits (6 or 8), time step (30s or 60s), and HMAC hash algorithm (SHA-1, SHA-256, or SHA-512).
- 3
Copy the active code, preview the next window’s code, or scan the generated QR code into a mobile authenticator.
Frequently asked questions
Why might my TOTP code differ from another device?
TOTP depends on accurate UTC system time; make sure your device clock is automatically synchronized.
Does TOTP 2FA Code Generator save my secret key?
No. Your secret stays only in active browser memory and is cleared when you leave or reload the page.
Which authenticator apps are compatible with the generated QR code?
Any RFC 6238 compatible app (such as Google Authenticator, 1Password, Bitwarden, or Authy) can scan the standard otpauth:// QR code.
