Free 2FA code generator
Paste your 2FA secret key and get the live 6-digit code, the same one an authenticator app would show. No app or sign-up needed.
StarGenerator
Questions
How do I get a 2FA code online?
Paste the Base32 secret key you got when you set up 2FA (the text version of the QR code) and press Get 2FA codes. Your 6-digit code appears straight away and refreshes every 30 seconds.
Is my secret key sent anywhere or saved?
No. The code is calculated in your browser with the Web Crypto API. Nothing is sent to a server, and your keys aren't saved in the browser either: they live only in this tab's memory and are wiped when you press Clear all, after 5 minutes without activity, when the tab is hidden for more than 2 minutes, or when you leave the page.
Does it work with Google, Facebook, GitHub and others?
Yes. It uses the standard TOTP algorithm (RFC 6238), the same one Google Authenticator and Authy use. Any service that gives you a TOTP secret key works.
Can I generate codes for several accounts at once?
Yes. Paste one secret key per line. Each key gets its own live code and countdown.
Does it work offline?
Once the page has loaded, generating codes needs no internet connection: there is nothing to download or upload.
Should I use this instead of an authenticator app?
For everyday logins, an authenticator app on your phone is safer, because your secret keys stay on one device. This tool is handy when you're setting up 2FA, moving accounts to a new phone, or need a code on a computer you trust. Your secret key is as sensitive as a password: only paste it on a device you trust.
Open source (MIT): github.com/harindujayakody/2fa-tools· how it works