Santekno/toolsCategoriesTutorials

TOTP Generator

Generate RFC 6238 TOTP codes from a base32 secret. Secret never leaves your browser — and never touches localStorage.

Processed in your browserUpdated · Jan 2026
Input
0 charsdigitsstep
Output
0 chars

How to use TOTP Generator

Paste your input on the left, choose the options you want, and the output appears instantly on the right. Everything runs in your browser — none of your data is sent to a server.

  • Paste or type your input in the INPUT panel
  • The output regenerates automatically as you type
  • Use Copy to put the result in your clipboard
  • Click Sample to load a working example

What is TOTP Generator?

TOTP Generator implements the standard 6/7/8-digit time-based one-time password algorithm from RFC 6238. Default settings (SHA-1, 30-second step, 6 digits) match Google Authenticator, Authy, 1Password, and most 2FA setups. Algorithms SHA-256 and SHA-512 are also supported for newer deployments. The secret is processed entirely in your browser via the `otplib` library and is held only in React component state — it is never written to localStorage, sessionStorage, IndexedDB, or any cookie, so closing the tab forgets it completely. The code refreshes every second; the remaining-seconds counter shows when the next code will be issued. This tool is part of santekno's developer toolbox — a curated collection of utilities built for engineers who care about speed, privacy, and simplicity.

Common use cases

  • Debugging API payloads and integration issues
  • Inspecting tokens, hashes, or encoded strings during development
  • Generating fixtures and sample data for tests
  • Sharing readable output with teammates in code reviews

FAQ

No. It lives only in volatile component state. Closing the tab or navigating away erases it. Nothing is written to localStorage, sessionStorage, IndexedDB, or any cookie.