Tools/TOTP Code Generator
Cryptography & Security

TOTP Code Generator

Paste a Base32 authenticator secret to see the current one-time code and a live countdown to the next refresh.

Free & unlimitedRuns in your browserNo sign-up required
Loading tool…
How it works

Three steps, no setup

1

Paste the secret

This is the Base32 string shown when an app sets up two-factor authentication.

2

Watch the live code

A new 6-digit code is calculated every 30 seconds, matching your authenticator app.

3

Use it for testing

Handy for automated test suites that need to log in behind 2FA.

Common questions

Frequently asked questions

Is this the same algorithm as my phone app?
Yes — it implements the standard TOTP algorithm (RFC 6238), the same one used by Google Authenticator, Authy, and most 2FA apps.
Why did the code not match?
TOTP codes depend on accurate clocks. If your computer's system time has drifted, the generated code will not line up with your phone.
Chat with us
Usually replies in minutes