TOTP Authenticator — Online TOTP Generator & Tester

TOTP Authenticator — Online one-time password generator (RFC 6238)

Generate and copy Time-based One-Time Passwords (TOTP) instantly for testing, debugging, and QA. Configure algorithm (SHA-1 / SHA-256 / SHA-512), digit length (6 or 8), and see live codes that refresh every 30 seconds per RFC 6238.

Create new application

Secret Key
Application Name
Algorithm
SHA1 (Most popular)
SHA256
SHA512

Digits
6 digits
8 digits

How the Tool Works

Step 1.

Enter Your Application's Secret Key
Paste the shared TOTP secret (base32) from your app's 2FA setup screen.

Step 2.

Customise Algorithm and Digit Length
Choose SHA-1, SHA-256, or SHA-512, and pick 6 or 8 digits. SHA-1 + 6 digits is the common default; use stronger hashes if your integration requires it.

Step 3.

Generate One-Time Password
The current OTP is generated and updates automatically on a 30-second timestep (default per RFC 6238). Save up to 10 different application secrets for quick testing.

Step 4.

Copy and use the One-Time Password for authentication
Click/tap the code to copy it to your clipboard and paste it into your app's login flow.

Caution: All code generation and storage happen in your browser memory only.
And therefore, when your browser cache is cleared or if you reinstall your browser, all data saved for this tool will be permanently deleted.

Troubleshooting

Codes don't match?

Wrong secret format?

"Algorithm mismatch" errors

Intermittent failures in tests

FAQ

What is TOTP?

TOTP (Time-Based One-Time Password) is an industry-standard algorithm for generating temporary, single-use codes based on the current time and a shared secret. TOTP is defined by the official IETF standard RFC 6238, which specifies how these codes are calculated to provide short-lived OTP values for secure two-factor authentication across websites, applications, and services.

Why TOTP?

How long is a TOTP valid?

By default 30 seconds (RFC 6238 recommends 30s). Server verification often allows a one-step grace window for clock skew.

Which algorithm should I use — SHA-1, SHA-256 or SHA-512?

SHA-1 is widely supported and used by most authenticator apps; SHA-256/512 are more robust if you control both the client and server and want stricter hashing. Ensure all sides use the same algorithm.

Should I use 6 or 8 digits?

6 digits is the common standard (balances usability and security). 8 digits provide slightly more entropy but are less common for consumer authenticators.

How do I extract a secret from an otpauth:// URI?

The secret= parameter in the otpauth:// URL is the base32 secret.

How do authenticator apps generate these codes?

Google Authenticator, Microsoft Authenticator, Authy and 1Password all run the same RFC 6238 algorithm you see here: the shared secret and the current 30-second time step go through HMAC, and the result is truncated to 6 or 8 digits. That is why, for the same secret, the code on this page matches the one in your app.

For the full walkthrough, read How do authenticator apps work. Prefer to skip codes altogether? Try the passkey demo to see phishing-resistant, passwordless login in action.