TOTP / 2FA Code Generator

Generate live 2FA codes (TOTP) from a Base32 secret, or create a new secret with an authenticator QR code.

How are 2FA codes generated?

A TOTP code is an HMAC of the shared secret and the current 30-second time step, truncated to 6 digits (RFC 6238). Your authenticator app and the server compute the same code independently, so it changes every 30 seconds without any network connection.

How to use the TOTP / 2FA Code Generator

    Frequently asked questions

    Why does my code not match?

    Check the device clock (it must be accurate to within ~30 seconds) and the digits, period and algorithm settings.

    Which apps support the QR code?

    Google Authenticator, Microsoft Authenticator, Authy, 1Password, Bitwarden and others.

    Is the secret stored?

    No.