Authenticator Code Generator for Testing: totp code generator

Dedicated variation for totp code generator. Use Authenticator Code Generator for Testing with the full workflow from the main tool, with no sign-up and no login.

Use this tool

Add a temporary authenticator

Scan the setup QR code or paste the secret to generate codes locally.

A six-digit token already shown by an app cannot create the next one. Use the QR, Base32 secret, or otpauth link.

QR Code

Scan the setup QR code or paste the secret to generate codes locally.

Ready to generate a code

Add a QR code, Base32 secret, or otpauth link to start.

Before saving on this device

Saving stores the secret in this browser’s localStorage. Use it only for QA, staging, or testing on a trusted device. For personal, financial, admin, or production accounts, use a trusted authenticator app.

Authenticators saved in this browser

This list does not leave this device. Remove entries after testing or before using a shared computer.

No saved authenticator yet.

Open task-focused versions while keeping the complete workflow from the main tool.

Quick guide and practical context

Generate authenticator codes for test workflows

This tool reads an authenticator setup QR code, a Base32 secret, or the otpauth:// link used by compatible TOTP apps. Once loaded, the temporary code is calculated directly in your browser and refreshes on the interval set by the service, usually every 30 seconds.

You can upload a QR screenshot, use the camera, or paste the secret manually. That is useful when validating OAuth, login, staging, or local environments without repeatedly enrolling the same test secret in a phone app. A standalone six-digit token cannot generate future codes: the QR, Base32 secret, or otpauth link is required.

Use a QR Code, Base32 secret, or otpauth link

Most setup QR codes contain an otpauth://totp/ link with the account name, issuer, algorithm, number of digits, and expiry period. The tool respects those parameters and supports SHA-1, SHA-256, and SHA-512 when they are included.

If you only have the secret, paste the Base32 value, normally letters A–Z and digits 2–7. Spaces and hyphens are accepted for easier copying. Passwords, recovery codes, and the currently visible one-time token are intentionally not interpreted as TOTP secrets.

  • Upload an image that contains the setup QR Code.
  • Scan the QR Code with camera permission in your browser.
  • Paste a Base32 secret or an otpauth://totp/ link.
  • Click the displayed code to copy it to the clipboard.

What the expiry counter means

TOTP is a time-based one-time password. The same secret creates a different value on every period, and the counter shows how long remains before the next rotation. Copy a value before it expires; if a service rejects it, wait for the next rotation or check that your device clock is accurate.

Most services use six digits and 30-second periods. Some QR codes use eight digits, another algorithm, or a different period. Showing those settings helps debug an unexpected test failure without guessing which part of the configuration differs.

Local saving is for QA, not critical accounts

When you choose to save an entry, its secret stays only in this browser’s localStorage and is used to build your local testing list. The QR code, secret, and temporary code are not sent to this tool’s server by default. LocalStorage can still be accessible to people with access to the browser profile, malicious extensions, or device backups.

Use saving for disposable accounts, development, staging, and manual QA. For personal, financial, administrative, or production accounts, use a trusted mobile authenticator, a password manager with TOTP, or a security key. Remove saved entries after testing, especially on shared computers.

Security limits and good practices

This tool works with time-based TOTP codes. It does not replace push confirmation, SMS, FIDO2/WebAuthn security keys, or recovery codes. Other QR formats cannot be turned into a valid second factor unless they contain compatible TOTP setup data.

Never share the secret key, enrollment QR, or screenshots of that setup. Anyone who has the secret can generate the same temporary codes while it remains active. After a test, revoke or rotate the secret in the issuing service if it was used outside an isolated environment.

Frequently asked questions

Can I paste only the current six-digit code?

Not to generate future codes. The current token expires and does not contain the required secret. Paste the Base32 secret, otpauth:// link, or scan the setup QR Code instead.

Are QR scanning and TOTP calculation sent to a server?

No. The image, secret, and code calculation are handled locally in your browser. Setup data is not sent to a server by default.

Is it safe to save an account in the list?

Saving uses this browser’s localStorage, so it is intended only for testing and non-critical accounts on a trusted device. Use a dedicated authenticator for important accounts.

Why did a service reject the code shown here?

Check that the secret matches the service enrollment, your device clock is synced, and the value did not expire during submission. Also inspect the displayed digit, period, and algorithm settings.

Does it work with Google Authenticator, Microsoft Authenticator, and Authy?

It works when the QR code or secret follows the TOTP/otpauth standard. App-specific sync, push, or backup features are outside this tool.

Helpful links to continue similar tasks without starting over.

Privacy and local processing

Tools on this page run directly in your browser and do not send entered content to a backend. This improves privacy and reduces latency.