Diese Seite ist noch nicht auf Deutsch verfügbar, daher zeigen wir die englische Version.

TOTP Generator — 2FA Codes from a Secret Key

Paste a Base32 secret to see the current 6-digit 2FA code with a live countdown — exactly what Google Authenticator, Authy or 1Password would show. Create new secrets with an otpauth:// link for testing, and check whether a code is valid. Secrets never leave your browser.

Aktualisiert am
Letters A–Z and digits 2–7; spaces are ignored.
Current code
––––––

Refreshes in – s · next code –

Accepts the previous and next code too (±1 step), like most servers.

Deine Daten verlassen nie deinen Computer. Die Verarbeitung erfolgt zu 100 % lokal im Browser.

So nutzt du: TOTP Generator

  1. Paste the secret key from your service’s 2FA setup (the text shown under “Can’t scan the QR code?”), or click New random secret.
  2. The current code appears with a countdown; it changes every 30 seconds, like in your authenticator app.
  3. For testing your own app: copy the otpauth:// link or make a QR code from it and scan it with an authenticator.
  4. Type a code into Check a code to see whether it is valid right now.

How TOTP works

A time-based one-time password (TOTP, RFC 6238) is an HMAC of the current 30-second time step, keyed with a shared secret. Your phone and the server both know the secret, so both compute the same 6 digits without talking to each other. The secret is shown once during setup — usually as a QR code containing an otpauth://totp/…?secret=… link — and stored by your authenticator app.

SettingUsual valueNote
AlgorithmSHA-1What Google Authenticator and almost every service use; SHA-256/512 are rarely supported by apps.
Digits6Some banks and Steam-style tokens use 8.
Period30 secondsCodes are accepted for a step before and after, to allow clock drift.

Codes don’t match?

  • Clock: TOTP depends on the time. Turn on automatic date and time on your phone and computer.
  • Secret: copy it exactly; it is Base32 (A–Z and 2–7) — 0, 1 and 8 never appear.
  • Settings: digits, period and algorithm must match what the service uses (the otpauth link says so).

Security

Codes are calculated with your browser’s built-in Web Crypto — the secret is never sent anywhere. Even so, a 2FA secret is as sensitive as a password: use this tool for development and recovery checks, not on shared computers.

Related: Password Generator, HMAC Generator, QR Code Generator.

Auch gesucht als: 2fa code generator, totp code, authenticator code generator, google authenticator online, otp generator, otpauth uri, totp secret generator, verify totp.

Passende Tools zu: TOTP Generator

  • Hash Generator — Compute MD5 and SHA hashes of any text or file instantly, create HMAC signatures, and paste an expected checksum to verify a download.
  • Password Breach Checker — Find out whether a password has appeared in known data breaches — billions of leaked passwords collected by Have I Been Pwned.
  • JWT-Decoder — Füge ein JSON-Web-Token ein, um dessen Header und Payload zu überprüfen, das Ablaufdatum zu ermitteln und die Signatur zu verifizieren.
  • IBAN Validator — Check whether an IBAN is valid before you send money or save it: the country, the length for that country, the account format and the mod-97 checksum.

Häufige Fragen

How do I get a 2FA code from a secret key?
Paste the Base32 secret into the Secret key field. The current 6-digit code appears immediately and refreshes every 30 seconds.
Why is my TOTP code wrong?
Usually the clock: TOTP codes depend on the exact time, so enable automatic time on both devices. Also check that digits, period and algorithm match the service.
Is my secret sent anywhere?
No. The code is calculated in your browser with Web Crypto; the secret never leaves your device.
What is an otpauth:// link?
It is the standard format authenticator apps read from a QR code: it contains the secret, the issuer and account name, and the code settings.
Kann ich TOTP Generator als Web-App installieren und offline nutzen?
Ja. TOTP Generator ist eine installierbare Web-App (PWA) – sie wird über Ihren Browser installiert und nicht aus einem App-Store heruntergeladen. Klicken Sie oben auf dieser Seite in Chrome oder Edge (Windows, macOS, Linux, ChromeOS) auf „App installieren“ oder verwenden Sie auf Android-Geräten „Teilen“ → „Zum Startbildschirm hinzufügen“ auf dem iPhone und iPad bzw. „Datei“ → „Zum Dock hinzufügen“ in Safari 17+ auf einem Mac. Die App öffnet sich dann in einem eigenen Fenster mit einem eigenen Symbol, und da sie vollständig in Ihrem Browser ausgeführt wird, funktioniert sie auch offline. Firefox auf dem Desktop kann keine Web-Apps installieren. So funktioniert die Installation.

Ähnliche Tools