DevToolStation

Security & Crypto

TOTP / 2FA Codes

Live one-time codes from a Base32 secret, plus otpauth:// URIs for testing 2FA flows.

Loading the TOTP / 2FA Codes…

About the TOTP / 2FA Codes

Generate the same one-time codes as Google Authenticator, Authy and 1Password from a Base32 secret, to test two-factor login flows. Choose the digits, period and algorithm, see the previous and next codes, and build an otpauth:// URI for enrolling an authenticator app.

How to use it

  1. Paste the Base32 secret, or generate one.
  2. Match the digits, period and algorithm of your system.
  3. Use the current code; it refreshes automatically.

Frequently asked questions

Why don’t my codes match the app’s?
Check that the clock is correct and that digits, period and algorithm match. Most services use 6 digits, 30 seconds and SHA-1.
Should I paste my real 2FA secret here?
The secret stays in your browser, but treat it like a password. This tool is meant for testing and development secrets.
Is my secret uploaded?
No. Everything runs in your browser tab with JavaScript. Nothing you enter is uploaded, logged or stored, and the page works offline once loaded.