TOTP / 2FA Code Generator
Show two-factor codes (like Google Authenticator) from a Base32 secret or an otpauth link, with a countdown and the previous and next codes, or create a new secret to test your app. The secret stays in this tab only.
Free, no sign-up
Your data stays on your device
Works offline after first open
The tool
Loading the tool…
How to use
- Paste the secret (Base32 letters and digits) or a full otpauth:// link.
- The current code appears with a countdown and refreshes by itself.
- To test your system: open “New secret” and copy the link or secret into an authenticator app.
Privacy & how it works
Processes your data in the browser and stores nothing.
- Engine: lightweight in-page code, no external libraries.
- Works offline after you open it once.
Frequently asked questions
Is the secret saved or sent?
No. It stays in this page only and is never saved or sent. It is gone when you close the tab.
Should I use this instead of an authenticator app?
Not recommended; a dedicated app on your phone is better. This tool helps developers test their systems or check a given secret.
The code does not match?
Make sure your device clock is correct (even 30 seconds off changes the code), and that the algorithm, digits and period match the site’s settings.
Formulas & sources
Related tools
Password GeneratorGenerate strong passwords with secure, unbiased randomness: choose the length, letters and symbols, exclude look-alikes, and see their strength in bits and estimated crack time. Roughly check your own too.Random String & Secret GeneratorGenerate secure random strings from characters you choose, hex or Base64 of N bytes, ready-made secrets for JWT, API keys, Django and Laravel, or PIN codes, with honest entropy in bits.QR Code GeneratorMake a QR code for a link, Arabic or English text, Wi-Fi network, contact, email or phone number. Generated on your device, static, never expires. Download PNG or SVG.Hash GeneratorCompute MD5, SHA-1, SHA-256, SHA-512 and CRC-32 hashes of any text or file, or an HMAC with a key, and compare against a published checksum to confirm a file is intact. Local, no upload.