2FA guide
What Is an otpauth:// Link?
otpauth:// is the URI format authenticator apps use to describe a 2FA account. The QR code a service shows during 2FA setup is almost always just this link drawn as a QR code.
Example
otpauth://totp/GitHub:[email protected]?secret=JBSWY3DPEHPK3PXP&issuer=GitHub&algorithm=SHA1&digits=6&period=30
What each part means
- totp — the type. totp is time-based; hotp is the older counter-based type.
- GitHub:[email protected] — the label: issuer and account name, shown in your authenticator list.
- secret — the shared key in Base32. This is the only sensitive part, and the only required parameter.
- issuer — the service name. Apps use it for the title and icon.
- algorithm — SHA1 (default), SHA256 or SHA512.
- digits — code length, 6 (default) or 8.
- period — how long each code is valid, in seconds. 30 by default.
How to get the link
Some services show it directly as text. More often you only get the QR code. Upload a screenshot of that QR code to the generator and it is decoded into the otpauth:// link automatically.
Google Authenticator exports use a different scheme, otpauth-migration://, which packs several accounts into one code. The generator understands that format too and converts each account into a regular otpauth:// link.
Using the link
- Copy the complete link, starting with otpauth://.
- Paste it into the generator. Issuer, account, digits, algorithm and period are applied automatically.
- Optionally choose “Save locally” to keep it as a card, or show its QR code to add it to another authenticator app.
Frequently asked questions
Is it safe to share an otpauth link?
No. The link contains the secret. Anyone with it can generate your codes, so do not post it in chats, tickets or screenshots.
Can I create a QR code from an otpauth link?
Yes. Save the key in the generator and use the QR button on its card to display or download a QR code any authenticator app can scan.
