Kharabeesh
On-device ع

TOTP / 2FA Code Generator

Show two-factor codes (like Google Authenticator) from a Base32 secret or an otpauth link, with a countdown and the previous and next codes, or create a new secret to test your app. The secret stays in this tab only.

Free, no sign-up Your data stays on your device Works offline after first open

The tool

Loading the tool…

How to use

  1. Paste the secret (Base32 letters and digits) or a full otpauth:// link.
  2. The current code appears with a countdown and refreshes by itself.
  3. To test your system: open “New secret” and copy the link or secret into an authenticator app.

Privacy & how it works

Processes your data in the browser and stores nothing.

  • Engine: lightweight in-page code, no external libraries.
  • Works offline after you open it once.

Frequently asked questions

Is the secret saved or sent?

No. It stays in this page only and is never saved or sent. It is gone when you close the tab.

Should I use this instead of an authenticator app?

Not recommended; a dedicated app on your phone is better. This tool helps developers test their systems or check a given secret.

The code does not match?

Make sure your device clock is correct (even 30 seconds off changes the code), and that the algorithm, digits and period match the site’s settings.

Formulas & sources

Related tools