# TOTP Code Generator

> Generate time-based one-time passwords from a Base32 secret to test 2FA setups.

To generate a TOTP code, paste the Base32 secret shown during two-factor setup. The code is derived from the secret and the current time using HMAC-SHA1, exactly as Google Authenticator does, and refreshes every 30 seconds.

**URL:** https://convertto.tech/t/totp-generator
**Category:** Hash & Crypto Tools (https://convertto.tech/c/crypto-tools)
**Privacy:** Runs entirely in the browser; no upload
**Cost:** Free, no sign-up
**Last updated:** 2026-08-01

## Key facts

- **Privacy:** Runs entirely in your browser — nothing is uploaded
- **Cost:** Free, unlimited, no sign-up

## How to use

1. Enter or paste your base32 secret.
2. Choose the digits.
3. Set the period (seconds).
4. The result appears immediately — copy or download it.

## FAQ

### Should I paste a real 2FA secret here?

Only for testing your own setup. The computation is local and nothing is transmitted, but a 2FA secret is equivalent to a second password — treat it with the same care and prefer a throwaway test secret.

## Related tools

- [Bcrypt Hash Generator](https://convertto.tech/t/bcrypt-hash-generator): Hash a password with bcrypt at a configurable cost factor — the right way to store passwords.
- [Passphrase Generator](https://convertto.tech/t/passphrase-generator): Generate memorable Diceware-style passphrases from random words.
- [Password Generator](https://convertto.tech/t/password-generator): Generate strong random passwords using your browser's cryptographic random source.
- [Password Strength Checker](https://convertto.tech/t/password-strength-checker): Estimate how long a password would take to crack, and see exactly what weakens it.
- [HMAC Generator](https://convertto.tech/t/hmac-generator): Generate an HMAC signature with SHA-256, SHA-1, SHA-384 or SHA-512 and a secret key.
- [Base32 Encoder & Decoder](https://convertto.tech/t/base32-encode-decode): Encode and decode Base32 (RFC 4648) — used by TOTP secrets and case-insensitive identifiers.
- [CRC32 Checksum Calculator](https://convertto.tech/t/crc32-checksum): Calculate a CRC32 checksum — the fast error-detection code used in ZIP and PNG files.
- [MD5 Hash Generator](https://convertto.tech/t/md5-hash-generator): Generate an MD5 hash from any text — instantly and entirely in your browser.
