How to use: TOTP Code Generator

TOTP Code Generator is a free online Security Tools tool that generate RFC 6238 time-based one-time passwords from a Base32 secret, with the otpauth URI instantly in your browser. Paste your data, adjust the options and get the result in real time — no installation, no sign-up, and nothing is ever uploaded to a server.

Use TOTP Code Generator now →

Description

Generate RFC 6238 time-based one-time passwords from a Base32 secret, with the otpauth URI.

  • Security Tools
  • Because everything is computed client-side, TOTP Code Generator is safe to use with sensitive data such as API keys, tokens or private logs.
Input TOTP Code Generator Output Runs 100% in your browser — your data never leaves your device.
TOTP Code Generator — Input → Output

How to use

Using TOTP Code Generator takes three steps:

  1. Paste your data into the input box (or load the example).
  2. Configure the options to match your target format or scenario.
  3. Copy, download or inspect the output — it updates live as you type.
How to use · TOTP Code Generator 1 Paste your data intothe input box (or loadthe example). 2 Configure the optionsto match your targetformat or scenario. 3 Copy, download orinspect the output —it updates live as youtype.
How to use

Run

Examples

The classic Base32 test secret. Set the Unix time override to 59 and 8 digits to reproduce the RFC 6238 test vector 94287082.

Input

JBSWY3DPEHPK3PXP

Output

Current code   032522     (valid 21s more)
Previous       274531
Next           374108

Unix time      1789309779
Time step      59643659  (counter = floor(time / 30))
Algorithm      HMAC-SHA-1
Digits         6
Period         30s
Secret         JBSWY3DPEHPK3PXP (10 bytes after Base32 decode)

otpauth:// URI (for authenticator apps and QR generators)
otpauth://totp/26173?secret=JBSWY3DPEHPK3PXP&issuer=26173&algorithm=SHA1&digits=6&period=30

RFC 6238: the counter is the 30-second step since the Unix epoch, big-endian,
HMAC'd with the shared secret; 4 bytes are extracted by dynamic truncation.
Everything is computed in your browser — the secret is never transmitted.

This output was produced by actually running the tool, not written by hand.

Use cases

Common situations where TOTP Code Generator helps:

  • Generate RFC 6238 time-based one-time passwords from a Base32 secret, with the otpauth URI.

Parameters

This tool has no options — it works on the input alone.

FAQ

What is TOTP Code Generator?

TOTP Code Generator generate RFC 6238 time-based one-time passwords from a Base32 secret, with the otpauth URI. It runs entirely in your browser, so your data stays private.

Is TOTP Code Generator free to use?

Yes. TOTP Code Generator is free, unlimited and works without registration or installation.

Does my data get uploaded?

No. All processing happens locally in your browser; nothing is sent to any server.

Good to know

  • Everything runs client-side, so extremely large inputs are limited by your browser tab’s memory rather than by a server upload limit.

Related tools

TOTP Code Generator → · Security Tools →

Use TOTP Code Generator now →