← All text tools

TOTP code generator

Make two-factor (authenticator) codes from a secret key in your browser, for testing.

  • Free
  • No sign-up
  • Works on any device

About TOTP code generator

Enter a Base32 secret key and see the six-digit code that an authenticator app would show, refreshed every 30 seconds. TOTP combines the secret with the current time using HMAC-SHA1. It is meant for testing your two-factor setup, so use test secrets rather than real account keys.

How to use TOTP code generator

  1. Type or paste your text in the box above.
  2. The result appears instantly as you type.
  3. Copy the result or download it as a file.

Why use this tool?

Also known as

Frequently asked questions

Why is my TOTP code rejected?

Most often the device clock is off by more than a few seconds, or the secret was copied wrongly. Sync the time and check the Base32 key.

Is TOTP code generator free?

Yes. TOTP code generator on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Related tools