OTP Generator

Generate Time-based One-Time Passwords (TOTP) for two-factor authentication.

About TOTP

Time-based One-Time Password (TOTP) is a standard algorithm for generating temporary codes used in two-factor authentication.

The codes change every 30 seconds (by default) and are derived from a shared secret key using HMAC-SHA1.

This implementation follows RFC 6238 and is compatible with Google Authenticator, Authy, and similar apps.

💡

Help us improve!

How would you rate the OTP Generator?

<>

Editorial Note

MyCalcBuddy Editorial Team

This page is maintained as an educational calculator reference.

📚

Formula Source: Standard Mathematical References

by Various

🔄Last reviewed: May 2026
✓Formula checks are based on standard references and internal QA review.