2FA codes
Make one-time codes from a 2FA secret or otpauth link, to test a setup or check a backup.
Codes
Account
What it does
The 2FA code generator makes the codes an authenticator app shows, from a 2FA secret or an otpauth:// link. Use it to test a 2FA setup or to check that a saved backup secret still works. The codes are made in your browser. Use it as an online TOTP generator for tests. You can add several accounts, and each one shows its code with a ring that counts down the seconds left.
How to use it
- 1Paste the secret or the otpauth link.
- 2Change digits, interval or algorithm only if the service uses other values.
- 3Read the code before the ring runs out.
Common uses
- Test a 2FA setup while you build a login.
- Check that a backup secret you saved still gives the right codes.
- Read the code of an otpauth:// link you saved.
- See the codes of several test accounts at once.
- Try other settings, such as 8 digits or 60 seconds, when a service does not match.
Questions
Should I use this for daily sign-ins?
No. Keep using an authenticator app on your phone. Codes here are only as safe as this browser.
Is my secret uploaded?
No. The codes are worked out on your device and the secret isn’t sent anywhere.
Why doesn’t the code match?
Check the clock of this device, and whether the service uses 8 digits, 60 seconds or SHA-256. Most use 6 digits, 30 seconds and SHA-1.
What is a TOTP code?
A time-based one-time password: a short code worked out from a secret and the current time. Most services change it every 30 seconds.
What is an otpauth link?
A link that starts with otpauth:// and holds the secret and the settings. It is behind the QR code you scan when you set up 2FA.
Where do I find the 2FA secret?
Many services show it as text next to the QR code, often as a setup key or manual entry.
Which settings can I change?
The number of digits, the interval and the algorithm.