- Fill in Secret (Base32), Period (seconds), and Digits. Each control is labeled; you do not need to paste a JSON blob.
- Click "Run" to run the tool in your browser.
- Read the result below the form and copy it if you need it in another app.
TOTP Generator
Generate TOTP and HOTP codes from a secret key.
Output will appear here…
How to Use This Tool
Learn More About TOTP Generator
About TOTP Generator
Generate TOTP/HOTP codes from a secret key. All computation happens in the browser.
About
Generate TOTP/HOTP codes from a secret key. All computation happens in the browser.
Generate TOTP/HOTP codes from a secret key. All computation happens in the browser.
- Runs in browser
- Yes
- No signup required
- Yes
Examples
Default 30s 6 digits
Default 30s 6 digits
Input
{
"secret": "JBSWY3DPEHPK3PXP",
"period": "30",
"digits": "6"
}Output
Output is different on every run (random bytes, salt, or nonce). Use the Result area after you click the action button.
60s 8 digits
60s 8 digits
Input
{
"secret": "JBSWY3DPEHPK3PXP",
"period": "60",
"digits": "8"
}Output
Output is different on every run (random bytes, salt, or nonce). Use the Result area after you click the action button.
Minimal
Minimal
Input
{
"secret": "JBSWY3DPEHPK3PXP",
"period": "",
"digits": "6"
}Output
Output is different on every run (random bytes, salt, or nonce). Use the Result area after you click the action button.
Use Cases
- Check totp generator values while you draft a page, spreadsheet, or config.
- Fill Secret (Base32), Period (seconds), Digits and compare the result to a second source.
- Keep sensitive inputs on-device — this page runs the calculation in the browser.
Frequently Asked Questions
Related Tools
Related tools: