TOTP Clock Check
Most "invalid code" errors with Google Authenticator, Aegis or 2FAS come from a device clock that is off by more than 30 seconds. This page measures that drift and generates RFC 6238 codes locally, with the Web Crypto API. No secret is sent anywhere: the page has no analytics and makes a single request, to itself, to read the server time.
1. Your clock drift
Measuring...
2. Generate a code from a secret
3. Self-test (RFC 6238 appendix B)
Running...
How to read the result
Servers usually accept the current 30 second window plus one on each side. A drift under 15 s is harmless. Between 15 and 30 s some logins fail. Above 30 s codes are rejected almost every time: turn on automatic date and time on the phone, then retry. If the code shown here matches your app but the site still refuses it, the secret was probably re-issued and the account needs a new enrolment.
Choosing an app with encrypted backup matters more than the app itself: if the phone is lost, an app without export means recovering every account by hand. A comparison of eight common authenticator apps (backup, sync, open source) is maintained at PwdFortress: best authenticator apps for 2FA.
Source code: github.com/ricco020/totp-clock-check, MIT licence.