OTP code generator

    Derive TOTP codes from a Base32 secret and build the matching otpauth URI.

    Loading tool…

    About the otp code generator

    Derives time-based one-time passwords from a Base32 secret, showing the previous, current and next codes along with the seconds remaining in the window. Also builds the otpauth:// URI that authenticator apps consume as a QR code.

    Frequently asked questions

    Why show previous and next codes?

    Servers usually accept one step either side to tolerate clock drift. Seeing all three makes it obvious whether a rejected code was a genuine mismatch or just a timing issue.

    Should I paste a real 2FA secret in here?

    Only for testing your own implementation. Anyone holding that secret can generate valid codes forever, which defeats the point of a second factor — keep production secrets in a dedicated app.