IJM
Developer ToolsCrypto, Encoding & Auth

RFC 6238 TOTP 2FA 6-Digit Code Generator

Compute real RFC 6238 HMAC-SHA1 Time-Based One-Time Passwords (6-digit codes, 30s window) from any Base32 secret locally.

Processed in browserNo upload

Guide · Developer Tools / Crypto, Encoding & Auth

About RFC 6238 TOTP 2FA 6-Digit Code Generator

Compute live RFC 6238 HMAC-SHA1 6-digit Time-Based One-Time Passwords (`30s` time step) directly from a Base32 shared secret via Web Crypto.

When to use this tool

Useful when testing 2FA QR implementations during local authentication development without scanning codes on your personal phone.

How to use RFC 6238 TOTP 2FA 6-Digit Code Generator

  1. Paste your test Base32 Secret Key (spaces allowed).
  2. Read the current 6-digit TOTP code, remaining seconds in the 30-second window, and next window code.

Supported inputs, options, and outputs

  • Input: Base32 TOTP secret key.
  • Outputs: Current 6-digit code, next-step code, and Unix time counter.

Accuracy notes and limitations

  • Assumes standard SHA-1, 6-digit, 30-second RFC 6238 parameters and depends on accurate device system clock time.
  • Use test secrets only in shared environments; store real account 2FA seeds inside dedicated password managers.

Privacy and browser processing

Security tokens, keys, certificates, OpenAPI schemas, and network payloads are parsed strictly inside browser memory—nothing is logged or uploaded to IJM servers. Hosted deployments load cookie-free analytics and Google Fonts.

Read the full IJM Privacy Policy or browse all Developer Tools.

Related Tools

Ranked by matching inputs, outputs, and workflow compatibility

View all 134 in Developer Tools →