TOTP (2FA) code generator with QR — Google Authenticator style

Create a two-factor secret, see the 6-digit code that changes every 30 seconds and a QR to scan in an authenticator app.

About TOTP generator

For developers building 2FA: press “New secret” or paste one to see this period's and the next 6-digit code, plus a QR your authenticator app can scan — to check your server computes the same codes.

Everything runs in your browser (standard HMAC-SHA1). Don't store real account secrets here.

FAQ

Codes don't match my app

Check your device clock — TOTP is time-based and drifts of over 30 seconds break it.

More tools here

Other tools you may like