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
JSON formatter Base64 encode / decode Image ↔ Base64 URL encode / decode HTML entities Hash generator UUID generator JWT decoder Regex tester Cron generator Unix timestamp converter Code formatter Markdown preview Text ↔ binary Color converter Contrast checker CSS gradient JSON to CSV CSV to JSON YAML ↔ JSON JSON to TypeScript AES encryption Password strength checker CSS box shadow CSS border radius Tailwind colors Color palette generator Aspect ratio calculator Chmod calculator