2FA code generator
Live TOTP codes from a secret, otpauth link or QR screenshot; create and verify secrets when building 2FA.
Runs on your device. Nothing is uploaded.
⏱️ Codes from a secret
🛠️ New secret (for developers)
Secret
otpauth URI
How 2FA codes work
Authenticator apps compute codes with TOTP (RFC 6238): an HMAC-SHA1 of a shared secret and the current 30-second window, cut to 6 digits. Neither the server nor the app exchanges codes over the internet, so the same secret on two devices gives the same codes.
That makes it handy for testing 2FA in your own app during development, restoring codes from a backed-up secret, or checking that a phone’s clock is not off.
A 2FA secret is a second key to the account. Do not paste secrets of real accounts into sites you do not trust; here they never leave the tab and are not stored, but their normal home is an authenticator app.