TOTP Code Generator
Type a Base32 secret and this page works out the time-based one-time code, with the one before and the one after. It follows RFC 6238 and runs in your browser, with nothing sent anywhere.
- Free, no sign-up
- Nothing is sent to a server
- Worldwide
How to use TOTP Code Generator online
- Paste the Base32 secret. Spaces are ignored.
- Match the settings. Digits, period and hash.
- Read the codes. Now, previous and next.
- Edit the box to refresh. The code is for the moment you last changed it.
Why use this free TOTP Code Generator
- RFC 6238 and 4226
- SHA-1, SHA-256, SHA-512
- Six to eight digits
- Periods of 15, 30 or 60 seconds
- Previous and next codes
- Runs locally
What TOTP is
A time-based one-time password is the short code that changes every thirty seconds in an authenticator app. Your account and the app share a secret key. Both work out the same code from that key and the current time, so the account can check it without any code being sent.
What you can set
Type the secret in Base32, which uses the letters A to Z and the digits 2 to 7. Choose six, seven or eight digits, a period of fifteen, thirty or sixty seconds, and the hash method. The usual setup is six digits, thirty seconds and SHA-1, which is also the default here. You can enter a Unix time to see the code for another moment.
The three codes
The page shows the code for now, the seconds left before it changes, and the previous and next codes. Servers often accept the neighbouring codes to allow for small clock differences, so seeing them helps when you test a login flow.
Tested against the standard
The method is checked in the tests of this site against the published test values of RFC 6238, for all three hash methods. That shows the maths is right. It does not show that a particular service uses the same settings, so match the digits, period and hash to what the service says.
Keep secrets safe
Anyone who holds the secret can make your codes, so do not leave a real secret in a shared browser. The page does not store the secret, but the box can keep the last text on this device, which you can dismiss. For daily use, an authenticator app or a password manager is the better home for a secret. Use this page mostly for testing.
Using the tool
As you type in the TOTP Code Generator, the result appears at once. Press Try a sample to see how it behaves.
TOTP Code Generator: frequently asked questions
Where do I get a secret?
Why is my code different from the app?
Does it need the internet?
Why do I see three codes?
Is it safe to paste my real secret?
Is the TOTP Code Generator private?
Can I save what the TOTP Code Generator gives me?
Related searches for TOTP Code Generator
- TOTP Code Generator online
- free TOTP Code Generator
- TOTP Code Generator online free
- TOTP Code Generator for mobile
- TOTP Code Generator without sign up
- TOTP Code Generator – Developer & Web Tools
TOTP Code Generator is a free online tool on MAITBOX, in the Developer & Web Tools group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.