JavaScript only

2FA Verification

Two-factor authentication code generator and verifier. Everything runs in-browser with pure JavaScript.

2FA Configuration

TOTP · SHA-1 · 6 digits
Current code

------

Refresh in 30s

QR code

Scan with Google Authenticator, Microsoft Authenticator, or similar apps.

2FA QR code

Code Verification

Enter a 6-digit token to verify. Tolerance window is ±1 time step by default.

Local verification history

No verification history yet.

How to use

1. Enter a shared secret and confirm issuer/account label.

2. Scan the QR code in your authenticator app, or import with the otpauth URL.

3. Enter the 6-digit token and verify directly in the browser.

T
ALL TOOLS · THE CATALOG
472 single-purpose tools · no sign-up
File-processing tools run in your browser. Network and device requirements are described on each tool.

2FA Authenticator — Free, Browser-Based TOTP Generator

Generate time-based one-time passcodes (TOTP) right in your browser. Compatible with Google Authenticator, Authy, and any RFC 6238 service. Secrets are stored locally — never uploaded.

FreeNo sign-upRuns in your browser

How TOTP codes work — and why yours might be rejected

A 2FA code is not sent to you; both sides compute it independently from a shared secret and the current time. Everything about TOTP that confuses people follows from that one design decision.

ParameterStandard valueWhat it means
AlgorithmHMAC-SHA1The default in RFC 6238 and what essentially every service issues
Digits6A few services issue 8 — the QR payload declares it
Period30 secondsA new code every 30 s, derived from Unix time divided by 30
SecretBase32 stringThe one value you must back up — the codes are derived from it
Drift windowUsually ±1 periodMost servers accept the previous or next code to tolerate clock skew
  • The overwhelmingly common failure is clock drift: if your device clock is more than about 30 seconds off, every code is rejected. Enable automatic time sync before assuming the secret is wrong.
  • Because codes are computed, not delivered, TOTP works with no signal and no network — an authenticator on a plane still produces valid codes.
  • Back up the Base32 secret (or the QR) when you enroll. Losing the device without it means account recovery, since the codes cannot be regenerated from anything else.
  • Anything holding your secret is a credential store. Keep it somewhere you would keep a password, not in a screenshot in your camera roll.

How to generate 2FA TOTP codes in your browser

  1. Add an account. Click Add, then either paste the secret key shown by your service, or scan the QR code with your webcam.
  2. Name the account. Set a label like "GitHub" or "AWS" so you can find the right 6-digit code at a glance.
  3. Copy the live code. A 6-digit code refreshes every 30 seconds. Click the code to copy it instantly into the login prompt.
  4. Back up your secrets. Export your secret list to a local JSON file as backup. Store somewhere safe (1Password, encrypted drive) — never email it.

Frequently Asked Questions

Are my 2FA secrets uploaded?
No. Secrets are stored only in your browser localStorage. No server, no sync, no telemetry.
Is this a Google Authenticator replacement?
Yes. It implements the same RFC 6238 TOTP standard. Any service that supports Google Authenticator will work with this tool.
What if I clear my browser data?
You will lose your secrets unless you exported the backup. Always keep an exported backup before clearing browser storage.
Can I scan QR codes from the screen?
Yes. Use your webcam to scan a QR code displayed on another device, or upload a screenshot of the QR code.
Does it work offline?
Yes. After first load, the tool runs entirely offline — TOTP only needs the secret and your device clock.
Why does my code not match?
TOTP requires accurate clock sync. If your device clock drifts more than 30 seconds, codes will be rejected. Sync your system time.

Use Cases

  • Replace Google Authenticator on a new laptop without phone setup
  • Generate 2FA codes for AWS, GitHub, Cloudflare, Notion accounts
  • Backup TOTP secrets to a portable, browser-based vault
  • Test 2FA login flows during development
  • Provide team-shared 2FA codes for shared service accounts (safely, with export backup)