TOTP Code Generator
Work out the current one-time code for a Base32 secret, the way an authenticator app does, with the time left and the previous and next codes. Also builds the otpauth link for a QR code.
How to generate a TOTP code
Enter the secret
Paste the Base32 secret or the otpauth link.
Read the code
The current, previous and next codes are shown.
Refresh
Press the button when the time left runs out.
When to use TOTP Code Generator
You are testing two-factor login and want to see the code an authenticator app would show.
You want to check that a secret was saved correctly before you rely on it.
Tips for a better TOTP Code Generator result
Paste the Base32 secret or the whole otpauth link, and read the current, previous and next codes with the time left.
Copy the otpauth link into a QR code generator when you need to enrol another device.
TOTP Code Generator: limits and what to check
If the code does not match the app, check your device clock and that the digits, period and algorithm match the service.
Treat the secret like a password, even though the code is made in your browser.
About TOTP Code Generator
Work out the six-digit code an authenticator app would show for a secret, with the seconds remaining and the neighbouring codes. It is useful for testing two-factor login and for checking that a secret was saved correctly.
FAQs
Is the secret sent anywhere?
No. The code is made in your browser, but treat the secret like a password.
Why does my code not match the app?
Check your device clock, and that the digits, period and algorithm match what the service set up.
Can I get a QR code?
Copy the otpauth link and paste it into QR Code Generator.