TOTP Code Generator

Live

TOTP Code Generator creates the six-digit time-based codes used for two-factor logins, from a Base32 secret.

Runs in your browser: what you enter is processed on your device and not uploaded to MyToolDock.

------

What is TOTP Code Generator?

TOTP Code Generator creates the six-digit time-based codes used for two-factor logins, from a Base32 secret. Use this only for accounts you own. Keep real secrets private; a separate authenticator app is safer for daily use.

How It Works

  1. Enter a Base32 secret or an otpauth:// link, with the digits, period and algorithm in the input fields on this page.
  2. Press the button to run TOTP Code Generator.
  3. Read the current code with the seconds left, and the next code in the result area, and copy or download it.

Common Uses

Good to Know

Paste the whole otpauth:// link and the digits, period and algorithm are filled in for you.

How it works

Paste the Base32 secret shown when you set up two-factor login, or the whole otpauth:// link, and the current code appears with the seconds left and the next code. Digits, period and algorithm are filled in from a link.

To debug a clock problem, change Time to a time you choose, as Unix seconds or a date, and see the code for that moment.

Worked example

Codes were compared with the published RFC 6238 test values and with a separate Python version for SHA-1, SHA-256 and SHA-512, 6 and 8 digits, 30 and 60 second periods and six different times. A live code was also compared with Python.

Limits

The code depends on your device clock, so a wrong clock gives a wrong code. Only time-based codes are supported. Use this for accounts you own; a separate authenticator app is safer for every day, and the secret should be kept private.

Frequently Asked Questions

Why is my code not accepted?

Check that your device clock is correct, and that digits, period and algorithm match what the service uses.

Does it work with otpauth links?

Yes. Paste the whole link and the settings are read from it.

Is my secret uploaded?

No. It stays in your browser and is not saved.

What does TOTP Code Generator do?

TOTP Code Generator creates the six-digit time-based codes used for two-factor logins, from a Base32 secret. Use this only for accounts you own. Keep real secrets private; a separate authenticator app is safer for daily use.

What do I need to enter in TOTP Code Generator?

A Base32 secret or an otpauth:// link, with the digits, period and algorithm.

Is my data private in TOTP Code Generator?

The secret stays in your browser and is not saved or sent anywhere.

Is MyToolDock TOTP Code Generator free to use?

Yes, MyToolDock TOTP Code Generator is 100% free with no registration, subscriptions, or limits. All features are fully unlocked.

Where can I learn more about TOTP Code Generator and related workflows?

MyToolDock publishes written guides on the topic: How Binary Code Translates to Readable Text; How Line Counters Help Code Metric Analysis. Each guide links back to the tools it covers.

Related Tools

CSS Grid Code Generator Unicode Code Point Viewer AI Code Explainer Code to Text Ratio Calculator TOML to JSON Converter ULID Generator

Guides

More in Developer Tools · Browse all tools

Developer Scratchpad

Copied to clipboard!