Secure TOTP Generator – Online totp generator Tool

Generate 2FA codes from your Base32 secret key.

000000

Refreshes in 30s

Developer Notice: This tool is intended for debugging and development. Never enter your primary account secrets on a public website. We use local processing, but browser extensions or other tabs could theoretically see your screen.

What is a TOTP Generator?

A TOTP (Time-based One-Time Password) generator produces a 6-digit code that changes every 30 seconds. It is the core technology behind Two-Factor Authentication (2FA) systems used by Google, Amazon, GitHub, and most major online services.

How the 2FA Code is Calculated

The calculation uses two inputs: a Secret Key (usually provided as a QR code or a Base32 string) and the Current Time. These are combined using the HMAC-SHA1 algorithm to produce a hash, which is then truncated to create the 6-digit code you see on your screen.

Private and Local-First

On metatool.in, the code generation happens 100% on your machine. We use the otplib library running inside your browser to perform the cryptographic math. Your secret key is never sent to our servers, ensuring your 2FA credentials remain under your control.

Frequently Asked Questions

TOTP (Time-based One-Time Password) is an algorithm that computes a one-time password from a shared secret key and the current time. It is widely used for Two-Factor Authentication (2FA) in apps like Google Authenticator and Authy.
This tool is for educational and development purposes. While it runs 100% locally in your browser, you should generally never enter your production 2FA secrets into any website. Always use a trusted physical device or encrypted password manager.
The TOTP algorithm uses the current Unix time divided by 30 seconds as its "moving factor". This ensures that each code is only valid for a short window, providing high security even if an attacker intercepts a single code.

Related Free Tools