Generators & QR

TOTP Generator - Generate time-based one-time passwords for 2FA

Generate time-based one-time passwords for 2FA

Created and maintained by: CalcTago Editorial TeamLast updated: 2026-02-09

Formulas and edge cases are reviewed against authoritative references before publication. For methodology, editorial standards, or corrections, use the links below.

Region
Loading calculator...

Frequently asked questions

What is TOTP?

Time-based One-Time Password - generates codes that change every 30 seconds for 2FA.

Is the secret safe here?

Calculations are client-side only. Never share your secret key publicly.

Why do codes change every 30s?

Short validity windows limit the time attackers have if a code is intercepted.

Related tools

About this tool

This TOTP Generator turns your inputs into practical results. Provide Secret Key (Base32), Code Length, and Period to calculate Time Remaining and Current Code.

Adjust values to compare scenarios and see how sensitive the result is. The calculation uses the numbers as entered, so double-check units and expect small differences from rounding in the displayed totals.