Generate the same six-digit codes an authenticator app shows, from a Base32 secret. Codes follow RFC 6238 (TOTP) and are computed locally with crypto.subtle HMAC, refreshing live with a countdown. The previous and next codes are shown too, which helps when debugging clock drift between a server and a phone.

You can set the digits (6–8), period and hash algorithm (SHA1, SHA256, SHA512). Most services use SHA1, 6 digits and 30 seconds; some authenticator apps silently ignore other settings.

  • Parse URI reads an otpauth://totp/... link (the content of a 2FA QR code) and fills in the fields.
  • Build URI and Show QR code go the other way, so you can enrol a test account in an authenticator app while building a 2FA feature.

A TOTP secret is as sensitive as a password. This page is meant for development and testing; I would not paste the secret of a real production account into any web page.