Menu
PDF Tools
Image Tools
Converters & Utilities
Seller & Print Tools
Accounting & Business
Calculators
Text & Writing Tools
Developer & Web Tools
Creator & Social Tools
Browser Utilities & Games
Document & Design Makers
Text & Developer Tools
Exam & Form Tools

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.

How to use TOTP Code Generator online

  1. Paste the Base32 secret. Spaces are ignored.
  2. Match the settings. Digits, period and hash.
  3. Read the codes. Now, previous and next.
  4. 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?
A service shows it as text next to its QR code when you set up two-factor sign-in.
Why is my code different from the app?
The digits, period, hash or secret may differ, or your device clock is off.
Does it need the internet?
No. After the page loads, the codes are worked out locally.
Why do I see three codes?
The previous and next codes help when a server allows a small time window.
Is it safe to paste my real secret?
Only on a device only you use. For daily use, prefer a dedicated app.
Is the TOTP Code Generator private?
No copy is made on a server; the TOTP Code Generator runs in your browser.
Can I save what the TOTP Code Generator gives me?
Press Use result as input and the TOTP Code Generator answer becomes the new input.

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.

More tools in Developer & Web Tools →

Search tools