Skip to content
OTP Generator

HOTP Generator

Generate counter-based one-time passwords (RFC 4226) from a Base32 secret and a counter value. Shows the next five codes.

Counter-based keys come from hardware tokens, YubiKey OTP slots and some bank tokens.

2Your next 5 codes

CounterCode
0––– –––
1––– –––
2––– –––
3––– –––
4––– –––
Calculated in your browser. Nothing is sent anywhere.
On this page

HOTP vs TOTP

HOTP codes advance with a counter (each button press or login) instead of the clock. TOTP is HOTP with the counter replaced by the current 30-second time step. HOTP is used by some hardware tokens, YubiKey OTP slots and older banking systems.

Resynchronising

If a server’s counter and yours drift apart, servers usually accept a small look-ahead window. The table above shows the next five codes so you can find which counter the server expects.

Frequently asked questions

What counter should I start with?

New HOTP secrets start at 0. If you have already used codes on another device, start at the number of codes used so far.

Can I use HOTP codes in Google Authenticator?

Yes. Google Authenticator supports counter-based keys; add them manually and choose the counter-based option.

Need a code right now?

Paste your key and get the current 6-digit code in seconds. Free, private and nothing to install.