Skip to content
toolstome

2FA / TOTP code generator

Test two-factor authentication without reaching for your phone. Paste a Base32 secret or an otpauth:// link, or upload a screenshot of the setup QR code, and see the current time-based code with a countdown, plus the next one. Create a new random secret with a QR code to scan into Google Authenticator, Microsoft Authenticator or Authy, then check that the code from the app matches. SHA-1, SHA-256 and SHA-512, 6 to 8 digits, 30 or 60 second periods and counter-based HOTP are supported. Codes follow RFC 6238 and are computed only in your browser.

Free · No sign-upProcessed in your browser
Settings

Type

Algorithm

Digits

Period

Runs in your browser. Secrets are never sent or stored.

How to use the 2FA / TOTP Code Generator

  1. 1

    Add a secret

    Paste it, paste an otpauth link, upload a QR screenshot or make a new one.

  2. 2

    Read the code

    The current code updates every 30 seconds.

  3. 3

    Verify

    Type a code from your app to check it matches.

When to use it

  • Developers testing a 2FA login flow.
  • Checking that a phone’s clock-based codes are correct.
  • Reading the secret inside a setup QR code.

Limits

  • Keep real account secrets off shared computers; anyone with the secret can make your codes.
  • Codes depend on your device clock being correct.

Privacy

Secrets and codes are handled only in your browser and are never sent anywhere or stored.

Frequently asked questions

Is it safe to paste my 2FA secret here?

The code is computed only in your browser, but the secret is the key to your account. Use real secrets only on your own trusted device.

Why don’t my codes match the app?

Check your device clock is set automatically, and that the algorithm, digits and period match the account (most use SHA-1, 6 digits, 30 seconds).

What is the difference between TOTP and HOTP?

TOTP codes change with time (every 30 seconds); HOTP codes change each time a counter goes up.

Can I read the secret from a QR code?

Yes. Upload a screenshot of the setup QR code; it contains an otpauth:// link with the secret and settings.

Which apps work with these secrets?

Any RFC 6238 authenticator: Google Authenticator, Microsoft Authenticator, Authy, 1Password, Bitwarden and others.

What does “previous code” mean when verifying?

Servers usually accept the code from one period before or after to allow for clock drift and typing time.

Guides

People also use

Last updated November 23, 2026 · How we build and test our tools

Categories

Recently used tools

Tools you open will appear here.

More