Skip to content
Toolbento

2FA code generator

Generate time-based one-time codes (TOTP) from a secret or an otpauth:// link, to test sign-in flows.

Everything stays on this device

2FA code generator runs in your browser. The text and files you add are worked on by this device and are never uploaded, to us or to anyone else.

  • No uploads. The page is blocked from sending data to any other server.
  • No account, cookies, ads or tracking.
  • Fonts and scripts come from toolbento.app itself, so the page makes no requests to other companies.
  • Closing the tab clears your text and files from memory.

Read the full details on the privacy page.

The secret is the Base32 key shown when you set up two-factor sign-in.

Current code

Enter a secret to see its code.

Missing a feature or found a bug in 2FA code generator? Tell me on X (@_andrewtran) or by email.

How to use 2FA code generator

  1. Paste the Base32 secret or the whole otpauth:// link.
  2. Read the current code and the time left for it.
  3. Copy the code with the Copy button.

Questions and answers

Is my secret sent anywhere?

No. Codes are worked out by your browser on this device, and the secret is not stored. It is gone when you close the page.

Why does my code not match my app?

Codes depend on the clock. Check that the time on this device is right, and that the digits, period and algorithm match.

Should I use this for my real accounts?

An authenticator app on your phone is the safer home for real secrets. This tool is meant for building and testing sign-in flows.

Esc

Loading tools