2FA Code Generator (TOTP)
Live RFC 6238 authenticator codes from a Base32 secret or otpauth:// link, plus setup QR codes.
Computed locally via Web Crypto. Secrets never leave this browser tab.
How to use 2FA Code Generator (TOTP)
Paste a Base32 authenticator secret or otpauth://totp/ link, or click New secret to generate a 160-bit secret.
Adjust Digits (6 or 8), Period (30s or 60s), and Algorithm (SHA-1, SHA-256, SHA-512) to match your provider.
Copy the live code, inspect previous and next window codes, or scan/download the setup QR code.
Frequently asked questions
Does the TOTP QR code use an external API?
No. The QR matrix and SVG are rendered directly in your browser without sending your secret anywhere.