Skip to content
TOTP & HOTP Code GeneratorCrypto & Security

TOTP & HOTP Code Generator

Generate time-based or counter-based one-time codes with SHA-1, SHA-256 or SHA-512.

Loading Tool…

What Is the TOTP & HOTP Code Generator?

Generate time-based or counter-based one-time codes with SHA-1, SHA-256 or SHA-512.

How It Works

Enter a Base32 test secret, choose TOTP or HOTP, digit count and algorithm, then generate a code. TOTP uses your device clock; HOTP uses your explicit counter.

When to Use It

Testing authenticator interoperability against RFC 4226 and RFC 6238. Secrets are not persisted; this is not a cloud-backed authenticator.

Frequently Asked Questions

Is My Input Uploaded?
No. Processing runs locally in this browser tab. These tools do not upload or persist your input.
Can I Save The Result?
Use Copy or Download after processing. Supported text reports also offer a PDF export. Keep original files until you have checked the result.

Found an issue? Send Feedback. See our data sources and update policy for tools that depend on changing information.