2FA Code Generator

Enter your 2FA secret key and get the current 6-digit TOTP code with a live countdown.

Enter 2FA Secret Key

Last 5 Keys

No history yet

Enter a key on the left to get your code

Copied!

Summary

Enter your 2FA secret key and get the current 6-digit TOTP code with a live countdown.

How it works

  1. Enter your 2FA secret key in the input field.
  2. The 6-digit code appears immediately with a countdown timer.
  3. Click "Copy Code" to copy the current code.
  4. The code refreshes automatically every 30 seconds.
  5. Previous keys are saved in your browser history for quick access.

Use cases

  • Access a 2FA code without your phone nearby.
  • Test TOTP integrations during development.
  • Retrieve a backup code when your authenticator app is inaccessible.
  • Quickly switch between multiple 2FA accounts via the history list.

Frequently Asked Questions

Last updated: 2026-06-23 · Reviewed by Nham Vu