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=30

How to use TOTP Code Tester

  1. Paste a test Base32 secret or otpauth:// URI, or generate a new one.
  2. Read the current and next codes.
  3. 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.