Skip to content
UniKit

Google Authenticator

Paste a Google Authenticator otpauth:// link or a bare Base32 secret and get the RFC 6238 code for a given moment. The algorithm and digit count inside the link are honoured; hotp and non-30-second periods are rejected explicitly.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

otpauth link or Base32 secret

One-time password

Same algorithm as Google Authenticator (RFC 6238, 30-second steps).

Paste an otpauth link or Base32 secret to see the code

Digits: 0 · Algorithm: · Window index: 0 · Source: bare secret

What this tool does

  • Before switching phones, paste the otpauth link behind an authenticator QR code and confirm both sides produce the same code instead of unbinding the old device blindly.
  • Work with a bare Base32 secret using the Google Authenticator defaults: 6 digits, SHA-1, 30 s steps.
  • Check the parameters inside a link: non-default settings such as algorithm=SHA256 or digits=8 show up in the output, so a code that never matches can actually be diagnosed.

Example

Input

otpauth://totp/Example:[email protected]?secret=GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ&issuer=Example

Output

Code: 287082
Algorithm/digits: SHA1 / 6 digits
Time step: 59 s → window 1
Account: Example:[email protected]

The secret in that link is the 20-byte sample from RFC 6238 Appendix B (ASCII 12345678901234567890); at timestamp 59 s its published 8-digit code is 94287082, and with the Google Authenticator default of 6 digits the code is 287082.

Frequently asked questions

What does an otpauth link look like?

It looks like otpauth://totp/Issuer:account?secret=KEY&issuer=Issuer, with optional algorithm, digits and period parameters. The key must be Base32 (A–Z and 2–7); percent-encoding in the link is decoded automatically.

Why are hotp links or period=60 rejected?

hotp is a counter-based code with no time window, and this tool implements RFC 6238 with fixed 30-second steps. For any other period it says so explicitly instead of returning a plausible-looking wrong code.

How is this different from the TOTP tool?

The TOTP tool takes a bare Base32 secret and asks you to pick digits and algorithm. This one follows the parameters inside an otpauth link (falling back to 6 digits and SHA-1 for a bare secret) and also shows the issuer and account. Both use the same implementation, so the codes can be cross-checked.

Does the code refresh on its own?

No. The timestamp is the second at which you opened the page; press "Use current time" again after 30 seconds. Keeping the timestamp explicit is what makes the output reproducible and checkable.

Keywords:Google AuthenticatorotpauthTOTPBase32

Related tools