OTP Code Generator
Encoding & Encryption ยท Free Online Tool
Generate TOTP 2FA codes from a Base32 secret.
Secret
Current code
Codes refresh every 30 seconds based on the current Unix time.
Web Crypto
HMAC-SHA1 is computed natively via crypto.subtle โ no external libraries.
Auto Refresh
Codes regenerate automatically each time step, with a live countdown.
Private
Your secret never leaves the browser โ all computation is local.
How to Use OTP Code Generator
- 1Enter or paste your data into the input field.
- 2Select the desired encoding, hashing, or encryption options.
- 3Click the action button to process your data.
- 4Copy the result from the output field.
Features
- โ100% free โ no signup, no subscription, no ads
- โRuns entirely in your browser โ data never leaves your device
- โFast and lightweight โ instant results
- โCross-platform โ works on desktop, tablet, and mobile
Frequently Asked Questions
Is my data safe?
Yes. All encoding, hashing, and encryption operations run entirely in your browser. Your data is never sent to any server.
Can I use this for passwords?
We recommend using the Password Generator for creating secure passwords, and Bcrypt Hash for storing password hashes. Never store plain-text passwords.
What hash algorithms are supported?
The Hash Generator supports MD5, SHA-1, SHA-256, and SHA-512. For HMAC signatures, use the HMAC Generator.
Related Tools
Base64
Encode and decode Base64 with UTF-8 support.
URL Encoder
Percent-encode and decode URLs.
Unicode Converter
Convert text to Unicode escapes and back.
HTML Entity
Encode and decode HTML entities.
Number Base Converter
Convert between binary, octal, decimal, hex.
Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-512 hashes.
Learn the concept
Learn the concept
Understand the programming ideas behind this tool.