TOTP code generator
Enter your key. Get your code. Sign in.
Use the key supplied by your service when enabling two-step verification. Codes update automatically over time.
Authentication key
Current verification code
Your code appears when you enter a valid key.
New code in seconds
Enable automatic time on your device if codes are rejected.
Code details
- Account
- Algorithm
- Code length
- Seconds between codes
- Device time
- Code changes at
How to use this tool
How to import a QR image
Supports TOTP setup QR images in PNG, JPEG, WebP and GIF up to 20 MB.
Select the paste area and press Ctrl+V or Cmd+V. On a phone, use Paste on your keyboard. Accepts QR images or otpauth://totp/ URLs. If the Paste image button or your keyboard cannot paste images, choose an image.
Keep all four sides of the QR code in view. The camera stops after a code is read or after 2 minutes.
Where do I get the secret key?
Your service supplies the key when you enable two-step verification. Enter its manual key or choose an image of its TOTP setup QR. This tool cannot retrieve a key from your account or create a replacement key for the service.
How do codes change?
The key and current time produce a code. The same key, settings and time window produce the same code. Codes usually change every 30 seconds. The sign-in service decides which codes to accept and prevents reuse after successful verification.
How should I protect my key?
Anyone with your key can generate sign-in codes. Use a device you trust. Share only with someone allowed to generate your codes. Reloading clears this session. Copied content may remain in your device clipboard.
Are share links safe?
A share link contains your authentication key and code settings. The key portion is not sent to the server when the page opens and is removed from the address bar after import. However, the link may remain in browser history, sync, clipboard or messages. Anyone with the link can generate codes until you replace the key at your service. Links do not expire and are not single use. Do not send one unless you want to grant this access.
Can I use this without a network?
Once the page has loaded, generating codes does not need a network. Image and camera scanning need this website's decoder assets to be available. otpauth setup URLs are parsed on your device without fetching another website. Reloading while offline may fail. Web Crypto and HTTPS are required.
Standards RFC 6238 Key URI Format