---
title: "TOTP Generator: RFC 6238 2FA Authenticator - AllTools"
description: "Generate RFC 6238 TOTP codes from a shared secret with HMAC-SHA1/256/512 and custom period/digits — Google Authenticator compatible, secrets stay in-browser."
canonical_url: "https://tool.warmday.wang/en/crypto/totp"
meta:
  author: AllTools
  keywords: "online tools, AllTools, free online tools, developer tools, image tools, PDF tools, text tools, unit converter, no login, browser-based tools"
  "og:description": "Generate RFC 6238 TOTP codes from a shared secret with HMAC-SHA1/256/512 and custom period/digits — Google Authenticator compatible, secrets stay in-browser."
  "og:image": "https://tool.warmday.wang/img/og-cover.png"
  "og:image:alt": "AllTools Logo"
  "og:image:height": "630"
  "og:image:width": "1200"
  "og:title": "TOTP Generator: RFC 6238 2FA Authenticator"
  "twitter:image": "https://tool.warmday.wang/img/og-cover.png"
---

> Index of every page on this site: [llms.txt](https://tool.warmday.wang/llms.txt)

# **TOTP Generator**

Generate RFC 6238 time-based one-time passwords (TOTP), compatible with Google Authenticator, supporting SHA-1/256/512 algorithms and custom parameters.

### **Configuration**

**Shared Secret**

Base32-encoded shared secret (compatible with Google Authenticator)

**Digits**

**Refresh Period**

**Algorithm**

Current Code

**\------**

Refreshes in 0s

## **Usage**

#### **TOTP Principle**

TOTP (Time-based One-Time Password) generates one-time passwords by combining a shared secret with the current timestamp via HMAC, then truncating to a fixed number of digits. Codes automatically refresh at regular intervals, commonly used for two-factor authentication (2FA).

#### **Parameter Description**

Secret: Base32-encoded shared secret used as the basis for code generation; Digits: Number of digits in the generated code (6 or 8), affects strength; Refresh Period: Time interval between code refreshes in seconds, default 30s; Algorithm: Hash algorithm used by HMAC, SHA-1 is the most compatible.

#### **Steps**

1\. Enter the Base32-encoded shared secret (or click 'Generate Random Secret' to create one); 2. Select code length (6 or 8 digits); 3. Set the refresh period (default 30s); 4. View the current code and remaining time in real time; 5. Click 'Copy Code' to use for login verification.

#### **Notes**

For compatibility with standard TOTP clients, SHA-1 is recommended; the secret must be kept confidential and synchronized between parties; browser clock skew affects accuracy; this tool is a front-end simulation, generated codes are compatible with standard TOTP clients.

## **Related tools**

More from the same category · Encryption

[**MD5 Hash**Generate 32-char MD5 digests for text and files to verify integrity and detect content changes locally.](https://tool.warmday.wang/en/crypto/md5) [**Hash Calculator**MD5, SHA-1, SHA-256, SHA-512 digests for text and files in one pass for checksums.](https://tool.warmday.wang/en/crypto/hash) [**Base64 Converter**Base64 encode/decode for text, UTF-8 and images, with Data URL output for inline embedding.](https://tool.warmday.wang/en/crypto/base64) [**Symmetric Encryption**Encrypt/decrypt with AES, DES, 3DES, RC4 and SM4, configurable mode, padding, key and IV, fully client-side.](https://tool.warmday.wang/en/crypto/symmetric) [**RSA Tools**Generate RSA key pairs (1024-4096 bit), encrypt/decrypt and sign with PKCS#1 v1.5 or PSS, browser-side.](https://tool.warmday.wang/en/crypto/rsa) [**PGP Tools**Generate OpenPGP keys, encrypt, decrypt and sign text or files with GnuPG-compatible ASCII-armored output.](https://tool.warmday.wang/en/crypto/pgp)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://tool.warmday.wang/#organization","name":"AllTools","alternateName":"AllTools - 全能工具箱","url":"https://tool.warmday.wang/","logo":{"@type":"ImageObject","url":"https://tool.warmday.wang/img/logo.png","width":512,"height":512}},{"@type":"WebSite","@id":"https://tool.warmday.wang/en#website","url":"https://tool.warmday.wang/en","name":"AllTools","inLanguage":"en","publisher":{"@id":"https://tool.warmday.wang/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://tool.warmday.wang/en?q={search_term_string}"},"query-input":"required name=search_term_string"}},{"@type":"WebPage","@id":"https://tool.warmday.wang/en/crypto/totp#webpage","url":"https://tool.warmday.wang/en/crypto/totp","isPartOf":{"@id":"https://tool.warmday.wang/en#website"},"inLanguage":"en","name":"TOTP Generator: RFC 6238 2FA Authenticator","description":"Generate RFC 6238 TOTP codes from a shared secret with HMAC-SHA1/256/512 and custom period/digits — Google Authenticator compatible, secrets stay in-browser."},{"@type":"SoftwareApplication","@id":"https://tool.warmday.wang/en/crypto/totp#app","name":"TOTP Generator: RFC 6238 2FA Authenticator","description":"Generate RFC 6238 TOTP codes from a shared secret with HMAC-SHA1/256/512 and custom period/digits — Google Authenticator compatible, secrets stay in-browser.","url":"https://tool.warmday.wang/en/crypto/totp","applicationCategory":"SecurityApplication","operatingSystem":"Web","inLanguage":"en","isPartOf":{"@id":"https://tool.warmday.wang/en/crypto/totp#webpage"},"offers":{"@type":"Offer","price":"0","priceCurrency":"CNY"}},{"@type":"BreadcrumbList","@id":"https://tool.warmday.wang/en/crypto/totp#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://tool.warmday.wang/en"},{"@type":"ListItem","position":2,"name":"Crypto & Security","item":"https://tool.warmday.wang/en/crypto"},{"@type":"ListItem","position":3,"name":"TOTP Generator","item":"https://tool.warmday.wang/en/crypto/totp"}]}]}
```

## Sitemap

See the full [sitemap](https://tool.warmday.wang/sitemap.md) for all pages.
