Authenticator Code Generator
Authenticator-compatible code generator. Understand what an otpauth:// link contains and generate the matching code locally.
- Secret never leaves your browser
- Nothing you paste is uploaded
- Works instantly, no signup
Last updated: Oct 16, 2026 16:12:57
Generate a one-time code
Computed in your browser: the secret is not uploaded and not stored. The page makes one analytics request and nothing else.
“Authenticator” is a word that covers at least four different things: a TOTP app, a hardware token, a push-notification app, and a vendor’s proprietary second factor. This page is about the first kind — and specifically about compatibility: whether the code you generate here is the same code the service expects.
Short answer: if the secret, algorithm, digit count and period match, the digits match, on every standard implementation. The long answer is what usually goes wrong.
What an authenticator actually holds
An authenticator entry is not a code. It is a small record:
- secret — the Base32 key issued at enrolment;
- algorithm — SHA-1 by default, sometimes SHA-256 or SHA-512;
- digits — 6 almost always, 7 or 8 for some enterprise systems;
- period — 30 seconds by default, 60 on a few older platforms;
- and, for HOTP only, a counter.
Everything else — the six digits you see, the countdown ring — is derived from that record and the clock. Get the record right and any standards-compliant app agrees; get one field wrong and every app disagrees, including the one you think is correct.
Compatibility, honestly
| Implementation | Standard TOTP | Notes |
|---|---|---|
| Google Authenticator | Yes, SHA-1 / 6 digits / 30s | Does not support SHA-256 or 8 digits; services that need those specify a different app |
| Microsoft Authenticator | Yes, for personal accounts | Work tenants may enforce the app plus number matching |
| Authy, 1Password, Bitwarden, Aegis, 2FAS | Yes, including SHA-256 and 8 digits | The most tolerant group; good for enterprise entries |
| Hardware tokens | Often HOTP, sometimes proprietary | Not compatible with TOTP generators; the key cannot be extracted |
| Bank apps | Sometimes | Many use their own challenge scheme, tied to the app’s attestation |
The enrolment link, field by field
When a service shows a QR code, the QR contains a URI like this:
otpauth://totp/Example:alice@example.com?secret=JBSWY3DPEHPK3PXP&issuer=Example&algorithm=SHA1&digits=6&period=30
Each piece has a failure mode:
- Type —
totporhotp. Reading an HOTP entry as TOTP produces codes that are wrong after the first use. - Label —
Issuer:account, URL-encoded. Only cosmetic, but it is how you tell two entries apart later. - secret — the key, Base32. One wrong character and the output is unrelated, not “close”.
- algorithm / digits / period — optional; defaults are SHA-1, 6, 30. When a service omits them, the defaults apply, and that is the most common source of “compatible app, rejected code”.
- counter — present only for HOTP, and it must match the server’s count at that moment.
“Compatible with” is not “official”
This is a legal rather than technical point, and it catches people writing product pages. You may say a tool is compatible with Google Authenticator, because it implements the same standard. You may not imply it is Google Authenticator, or use the trademark as a product name, or suggest endorsement.
The safe formulations:
- “Compatible with Google Authenticator, Microsoft Authenticator and any RFC 6238 app.”
- “Generates standard TOTP codes (RFC 6238).”
- Not: “Google Authenticator Generator”, “Official Authenticator”, “Google-approved”.
Same secret, four apps: how to cross-check
When a code is rejected, the fastest way to find out whether the problem is your secret or your parameters is to compare two implementations side by side within the same 30-second window.
- Paste the secret here and note the six digits.
- Open the account in your authenticator app at the same moment.
- If the digits match exactly, the secret and parameters are right, and the problem is on the service side or in the clock.
- If the first four digits match but the last two differ, you are one step apart — a timing issue, not a wrong key.
- If nothing matches at all, the secret differs, or the algorithm or digit count does.
Doing this once tells you which of the four failure categories you are in, and it costs fifteen seconds.
When the service ships its own app
Some services — banks especially — insist on their own application, and the reason is usually not snobbery. Three mechanisms look like TOTP but are not:
- Attestation. The app proves it is unmodified and running on a genuine device before the server accepts a code. A browser cannot do that, and a generator cannot fake it.
- Device binding. The key is derived from a hardware identifier, so a copied secret is useless on another device.
- Challenge signing. The code is computed over the transaction details, not just the time. The six digits you type are specific to that transfer.
In those cases the answer is the service’s own recovery route, not a cleverer generator. If the app supports a manual setup key and a standard six-digit field, it is TOTP and this page applies.
Moving entries between apps
Compatibility is not only about the service — it is also about whether you can take your entries with you. Three transfer formats exist in practice:
- Native export files (Aegis, 2FAS, Bitwarden) — encrypted JSON or zip, importable by the same app on another platform.
- Migration QR bundles (
otpauth-migration://) — a base64 protobuf holding many accounts at once. Supported by some apps, ignored by others. - Manual re-enrolment — the fallback that always works, if you still have the setup key or can re-scan the service’s QR code.
Before you commit an account to an app, check which of the three it offers. An app with no export is an app you cannot leave, which matters more than its interface.
Compatible, and still rejected
If the app says the secret is valid but the service rejects the code, the cause is almost always one of four things, in this order:
- Parameters. The service wants 8 digits or SHA-256 and the generator is on defaults. The code looks perfect and fails every time.
- Clock. A device more than ~30 seconds off produces codes one step out. Check with any site that shows seconds.
- Wrong entry. Two accounts, same issuer, one secret pasted twice. Rename and delete the duplicate.
- Expiry. The code rotated between reading and submitting.
The full diagnostic order, including the cases where a reset is tempting and wrong, is in 2FA code not working.
Related
For the same widget without the compatibility discussion, the MFA code generator covers the security and policy side. For every parameter exposed with a worked example, the TOTP generator. For counter-based tokens, the HOTP generator. And if you need the key rather than the code, how to find your 2FA key covers where each platform hides it.
Frequently asked questions
Is this compatible with Google Authenticator?
Yes, for standard TOTP entries: SHA-1, 6 digits, 30 seconds. Google Authenticator does not support SHA-256 or 8 digits, so enterprise entries needing those require a different app.
Why does the same secret show a different code in another app?
Either the parameters differ (algorithm, digits, period) or the two readings fell in different time steps. Compare both within the same 30-second window before assuming the secret is wrong.
Can I use this for Microsoft accounts?
Yes for personal accounts that issue a standard TOTP entry. Work accounts may enforce the Microsoft Authenticator app with number matching, which a generator cannot satisfy.
What does an otpauth:// link contain?
The mechanism (totp or hotp), a label, the Base32 secret, and optional algorithm, digits, period and counter values. Pasting the whole link sets them automatically.
Can this site see my secret?
No request is made after the page loads, and nothing is stored. The computation happens in the browser with the Web Crypto API.
Why do bank apps not work with this?
Many banks use attestation, device binding or transaction signing rather than plain TOTP. Those cannot be reproduced outside their app.