Guide · Developer Tools / Crypto, Encoding & Auth
About RFC 6238 TOTP 2FA 6-Digit Code Generator
Compute live RFC 6238 HMAC-SHA1 6-digit Time-Based One-Time Passwords (`30s` time step) directly from a Base32 shared secret via Web Crypto.
When to use this tool
Useful when testing 2FA QR implementations during local authentication development without scanning codes on your personal phone.
How to use RFC 6238 TOTP 2FA 6-Digit Code Generator
- Paste your test Base32 Secret Key (spaces allowed).
- Read the current 6-digit TOTP code, remaining seconds in the 30-second window, and next window code.
Supported inputs, options, and outputs
- Input: Base32 TOTP secret key.
- Outputs: Current 6-digit code, next-step code, and Unix time counter.
Accuracy notes and limitations
- Assumes standard SHA-1, 6-digit, 30-second RFC 6238 parameters and depends on accurate device system clock time.
- Use test secrets only in shared environments; store real account 2FA seeds inside dedicated password managers.
Privacy and browser processing
Security tokens, keys, certificates, OpenAPI schemas, and network payloads are parsed strictly inside browser memory—nothing is logged or uploaded to IJM servers. Hosted deployments load cookie-free analytics and Google Fonts.
Read the full IJM Privacy Policy or browse all Developer Tools.