TOTP 2FA Verifier

This page computes the current RFC 6238 code from a Base32 secret you already enrolled. It is a second clock for when an app and a server disagree, and a way to confirm a secret before you print a backup. It is not an excuse to paste production secrets into a shared browser profile.

What the TOTP code verifier is for

When two-factor codes are rejected, the cause is usually clock drift, a mistyped secret, or mismatched settings — but the failure message rarely says which. Generating the expected code from a known secret isolates the problem immediately.

It is the fastest way to confirm whether your server, your authenticator app, or the secret itself is at fault.

Common uses

  • Debugging a 2FA implementation that rejects valid codes
  • Confirming a secret was transcribed correctly during enrolment
  • Checking whether server clock drift is causing failures
  • Validating TOTP settings such as period and digit count

What the output means in the real world

The six-digit code is valid for the current 30-second window (and often the adjacent windows on the server). Use it to log in or to confirm the secret matches the QR you just issued. If the code here matches the phone app but the website rejects it, the server clock or the stored secret is wrong. Close the tab when you finish so the secret leaves memory.

How this fits into real work

On-call engineers debug 'invalid OTP' by comparing three clocks: the phone, the IdP, and a known-good TOTP implementation. This page is that third clock when you cannot install another app on a locked-down laptop.

A secret that produces codes here but was emailed in plaintext is already burned. Enrol a new factor and treat the old secret as compromised even if nobody 'used' it yet.

Some systems use 60-second steps or 8-digit codes (RFC 6238 allows both). If numbers never match, check digits and period before you reset the user.

How to use this tool

  1. Paste the Base32 TOTP secret.
  2. Compare the generated code with what your authenticator app displays at the same moment.
  3. If they differ, the secret is wrong; if they match but the server rejects them, the server's clock or settings are wrong.

Tips

  • TOTP codes change every 30 seconds; a code near the boundary may expire between reading and typing.
  • Servers should accept the previous and next window to tolerate drift of up to 30 seconds either way.
  • Persistent failure across all codes usually means server time is wrong — check NTP.

Privacy & how it works

Everything happens inside your browser. The values you type are held in page memory only, are never sent to a server, and disappear when you close the tab. You can confirm this in your browser's network tab: the only request a tool makes is one that names the tool for a usage count, with nothing you typed in it. The tools also work with the internet disconnected. A TOTP secret is a live second factor; use test values wherever possible.

Frequently asked questions

Why is my authenticator code always rejected?
Most often the server's clock is out of sync. TOTP depends on both sides agreeing on the time, so a drift beyond the accepted window invalidates every code.
How long is a code valid?
Thirty seconds by default. Well-built servers also accept the adjacent windows, giving a practical validity of about ninety seconds.

Browse other tools

All tools run entirely in your browser — nothing you type is sent to a server, except the optional HIBP 5-character hash prefix.