UTILS.
Private by default
⧖

TOTP / 2FA Code

Generate a time-based one-time passcode from a Base32 secret, refreshed every second.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →

About this tool

Compute the current TOTP two-factor code from a Base32 secret directly in your browser, with a live seconds-remaining display.

Frequently asked questions

What secret format is expected?
A Base32-encoded secret, the same format authenticator apps show when you set up two-factor authentication.
Why does the code change?
TOTP codes are derived from the current time divided into periods, so a fresh code appears at the end of each period.

More tools