About this tool
Compute the current TOTP two-factor code from a Base32 secret directly in your browser, with a live seconds-remaining display.
The code is computed with HMAC-SHA1 through the Web Crypto API. The Base32 secret is decoded (A-Z and 2-7, case-insensitive; spaces and trailing = are ignored), the device clock time is divided by the period to get a counter, and the signature is truncated to 6, 7 or 8 digits. Defaults are 6 digits and a 30-second period; the period is a whole number of at least 1. No other hash is offered.
The code and the seconds left refresh every second. The secret is used only inside the page for this calculation; the tool's code makes no network request with it and does not store it. It is a plain text field prefilled with a sample secret. If your device clock is off, the codes will be wrong.