HOTP GeneratorGenerate HMAC-based one-time passwords (HOTP) with counter tracking.

HOTP Generator
Generate HMAC-based one-time passwords (HOTP) with counter tracking.
Enter Secret
Base32 secret.
Set Counter
Counter value.
Generate
Generate code.
What Is HOTP Generator?
HOTP uses a shared secret and incrementing counter per RFC 4226. Unlike TOTP (time-based), HOTP is event-based. Suitable for hardware tokens and offline scenarios. Computes HMAC-SHA1 with dynamic truncation. This tool tracks history and auto-increments. All processing uses Web Crypto API client-side.
Why Use Our HOTP Generator?
- RFC 4226 compliant
- Counter auto-increment
- Generation history
- 100% client-side
Common Use Cases
Hardware Tokens
Test HOTP.
Development
Counter-based codes.
Offline Auth
No time sync.
Education
Counter vs time OTP.
Technical Guide
HOTP: (1) Decode Base32. (2) 8-byte big-endian counter. (3) HMAC-SHA1. (4) Dynamic truncation: last nibble offset, 4 bytes, mask, mod 10^digits. Counter must sync client/server.
Tips & Best Practices
- 1Sync counter
- 2Codes don't expire
- 3Keep history
- 4Use TOTP if time available
Related Tools

TOTP Generator
Generate time-based one-time passwords (TOTP) compatible with Google Authenticator.

TOTP Validator
Validate TOTP codes against a shared secret with configurable time window.

HMAC Generator
Generate HMAC digests with multiple hash algorithms.

Base32 Encode
Encode text to Base32 format using the RFC 4648 standard alphabet.

Base64 Encode
Encode text to Base64 format instantly in your browser.

Base64 Decode
Decode Base64-encoded strings back to plain text instantly.
Frequently Asked Questions
QFree?
QHOTP vs TOTP?
QSecret safe?
QExpire?
QAuto-increment?
About HOTP Generator
HOTP Generator is a free online tool from FreeToolkit.ai. All processing happens directly in your browser — your data never leaves your device. No registration required. No ads. Just fast, reliable tools.







