TOTP Code Tester
A developer tool for testing two-factor authentication: see the current code for a secret and generate setup QR codes for authenticator apps.
Runs in your browser. Nothing is uploaded Free, no sign-up Works on mobile
Secret key (Base32) or otpauth:// URIUse a test secret. Never paste the secret of a real account into any website.
Account label (for the QR code)
Scan with Google Authenticator, Microsoft Authenticator or Authy to check that your app produces the same codes. Developers can use this to test 2FA implementations.
otpauth://totp/DeskTray%3Ademo%40example.com?secret=&issuer=DeskTray&algorithm=SHA1&digits=6&period=30How to use TOTP Code Tester
- Paste a test Base32 secret or otpauth:// URI, or generate a new one.
- Read the current and next codes.
- Scan the QR code with an authenticator app to compare.
Frequently asked questions
Is it safe to paste my real 2FA secret?
No website should ever have your real 2FA secret. Use this tool only with test secrets.
Why don’t my codes match?
TOTP depends on the device clock. Make sure your computer and phone clocks are set automatically, and that the digits, period and algorithm match.
Related tools
All Security & Privacy →- Password Generator Create strong, unique passwords for every account.
- QR Code Generator Make a QR code for a website, Wi-Fi network, UPI payment, WhatsApp chat, contact card, email, SMS or location.
- Secure Notes A private notepad for things like Wi-Fi passwords, recovery codes or personal notes, encrypted on your device.
- Passphrase Generator Make a password you can actually remember, like “Crafty-Lemon-Uphill7-Banjo-Mystic”, that is still extremely hard to guess.
- Password Strength Checker See whether a password would survive a real attack.
- Password Breach Checker Find out whether a password has been exposed in a data breach.