Free Online TOTP Generator

Generate Your 2FA Code

Enter your Base32 secret key (from Google Authenticator, Authy, etc.) to generate your 6-digit Time-Based One-Time Password (TOTP). This tool runs in your browser only.





000000


30 seconds remaining

What is a TOTP?

A Time-Based One-Time Password (TOTP) is what you use for "Two-Factor Authentication" (2FA). It's a short, 6-digit code that changes every 30 seconds. It's generated using two things: a shared secret key (the Base32 string you get during 2FA setup) and the current time.

Because the code requires both your password (something you know) and your phone/token (something you have), it makes your accounts much more secure.

How Does This Tool Work?

This generator follows the RFC 6238 standard. It takes your Base32 secret key, decodes it into hex, gets the current time (in 30-second steps), and combines them using an HMAC-SHA1 hash. A small part of that hash is then converted into the 6-digit number you see. All of this happens instantly and securely in your browser.

Use Cases for TOTP

Why Use Utils Hub's TOTP Generator?

Frequently Asked Questions (FAQ)

Is it safe to enter my secret key here?

Yes. The tool is 100% client-side. The key is only used by the JavaScript in your browser to perform the calculation. It is not stored, transmitted, or logged. For maximum security, you can even disconnect from the internet after loading the page, and it will continue to work.

The code isn't working!

This is almost always due to one of two things: 1) You have a typo in your Base32 secret key. 2) The clock on your computer is incorrect. TOTP is time-based, so your computer's time must be accurate (synced to an internet time server) to work.

Related Tools on Utils Hub