A client-side Two-Factor Authentication (2FA) code generator that works like Google Authenticator, compatible with GitHub Pages.
- 🚀 Pure client-side - No server needed, works entirely in the browser
- 🔑 Supports all standard 2FA keys (both spaced and unspaced formats)
- ⏱ Real-time countdown showing code expiration time
- 📱 QR code generator for easy setup in authenticator apps
- 🎨 Clean, responsive interface works on all devices
- 🔒 Privacy-focused - Your secrets never leave your browser
- Enter your secret key (provided when you set up 2FA)
- The current verification code will appear automatically
- Optionally generate a QR code to scan with your authenticator app
- Use the generated code wherever required
Both formats work:
- Standard:
ABCDEFGHIJKLMNOP
- Spaced:
ABCD EFGH IJKL MNOP
- Upload the
index.html
file to your repository - Enable GitHub Pages in your repository settings
- Select the
main
branch and root folder - Your 2FA generator will be live at
https://dev-ir.github.io/2FA-Online
- Built with vanilla JavaScript (no frameworks)
- Uses OTPAuth library for TOTP generation
- QR codes generated with QRCode.js
- Works with all standard TOTP implementations (Google Authenticator, Authy, etc.)
This project is licensed under the MIT License - see the LICENSE file for details.
We don't need financial support, only Star (⭐) is enough, thank you.
- USDT (TRC20):
TVUqVMoCEe5DVUoxmPg8MwmgcHvZLqLjr4