فارسی

Generate & Verify TOTP Codes

See the six-digit code your authenticator app would show. Paste a Base32 secret or an otpauth link, check a code, and scan the QR — all in the browser.

Use this tool in your browser without installing software.

About this tool

Every time you sign in to an account with two-factor authentication, your authenticator app turns two things into a six-digit code: the secret you saved when you set up the account, and the current time. That code is valid for 30 seconds. This page runs the same calculation in your browser: give it the Base32 secret (or an otpauth:// link) and it shows the code with a countdown to the next one. It works the other way too: paste a code from your app to see whether it matches the secret — useful when a site rejects a code because the device clock has drifted. You can also create a random secret, name the service and account, and scan the QR to add it to your app. SHA1, SHA256 and SHA512 are supported, with 6- or 8-digit codes and a 30- or 60-second step. Nothing is stored or sent; the secret lives in this tab until you close it.

How to use it

  1. 1

    Paste the Base32 secret from the service's security page, or create a random one.

  2. 2

    Read the six-digit code and its countdown. To add it to an app, fill in the service and account names, then scan the QR.

  3. 3

    To check a code from your app, type it into the check section.

If the answer looks wrong

  • It says my secret is not valid.

    A Base32 secret only contains A–Z and 2–7. Spaces, dashes and lower case are removed for you; if it still fails, the secret was copied incompletely.

  • The code does not match my app.

    Match the algorithm, code length and time step to the service settings. A clock difference also changes the code, so sync the device time.

  • The QR code does not appear.

    If the browser blocked image generation, use “Copy setup link” and enter the link in your app instead.

  • The code changed after I closed the tab.

    The secret was held in the tab and cleared when you closed it; enter it again. The tool does not store secrets on purpose.

Frequently asked questions

Where do I find the secret?

When you turn on two-factor authentication, the service shows a Base32 secret or a QR code. If you scanned the QR, most apps also let you view the secret in their settings. Some services give an otpauth:// link, which you can paste here directly.

The code looks right but the site rejects it.

The device clock is probably off. Codes are derived from the current time, and a few seconds of drift is enough to break them. Sync the clock; this page also accepts the previous and next window so you can tell whether the problem is the clock or the secret.

Is my secret stored or sent anywhere?

No. The calculation happens in your browser and no request carries the secret. Closing the tab clears it, which is why nothing is saved.

How do I know which algorithm and length to use?

Most services use SHA1, six digits, and a 30-second step. If yours uses something else, pick it under advanced settings; otpauth links usually spell these values out.

How long is a code valid?

Each code lasts until the end of its time step — about 30 seconds by default. The countdown next to the code shows the remaining time. If a login is about to expire, wait for the next code instead of racing the clock.