piko

2FA Code Generator

Generate the current time-based one-time password from a Base32 setup key.

Runs on your device. Nothing you add is uploaded.

seconds
Your result shows here after you press “Get current code”. Nothing leaves your device.

How to use 2FA Code Generator

  1. Enter the account's Base32 setup key.
  2. Match the algorithm, code length, and period to the account settings.
  3. Select Get current code and use the result before it expires.

Questions

Which settings should I start with?
Most services use SHA-1, six digits, and a 30-second period. Use the settings supplied by your account.
Why might the account reject a code?
Check that the device clock is synchronized, the code is current, and the setup key and settings match.

How this works

Implements RFC 6238 with the device clock and Web Crypto HMAC.

Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. Your last settings are kept in this browser so the tool opens the way you left it. Privacy