This is a code generator for the Time-based One Time Password (TOTP) algorithm.


What is this?

This is a code generator for the Time-based One Time Password (TOTP) algorthm. It's intended for developers of web applications with TOTP support to quickly generate codes for testing purposes. It's not a general purpose authenticator app.

What this tool can do:

  • Quickly generate TOTP codes;
  • View codes for past and future time-windows; and
  • Fiddle with various TOTP paramters.

What this tool can't do:

  • Store your TOTP secrets (you can try bookmarking this page with the secret in the URL, but it's not secure);
  • Act as your general purpose authenticator app; and
  • Scan TOTP QR codes.

How do I use this tool?

To start, simply type or paste in the TOTP secret key. This should be in the standard base32 format. This will generate 6-digit TOTP codes that update every 30 seconds using the SHA-1 algorithm that's used by default in all major authenticator apps.

You can press "show advanced settings" to adjust the TOTP parameters to use non-default values.

The generated codes are displayed in chronological order. The current code is shown in large text. The codes above are past codes, and the codes below are future codes.

The settings are stored in the URL hash. You can bookmark the page or copy the link to go directly to a certain configuration.

How do I use this tool?

To start, simply type or paste in the TOTP secret key. This should be in the standard base32 format. This will generate 6-digit TOTP codes that update every 30 seconds using the SHA-1 algorithm that's used by default in all major authenticator apps.

You can press "show advanced settings" to adjust the TOTP parameters to use non-default values.

The generated codes are displayed in chronological order. The current code is shown in large text. The codes above are past codes, and the codes below are future codes.

The settings are stored in the URL hash. You can bookmark the page or copy the link to go directly to a certain configuration.

I like this website. How can I support you?

For security reasons, this website will NEVER serve ads. Unfortunately, servers and domains are not free, though I try to be as economical as I can. I would rather lose money running this public service than serve ads or shut it down, but if you would like to help me offset the costs, feel free to send some money my way on: