Home All Tools Dev Tools Popular Rated Browse 100+ Tools →
TOTP · 6 digits · 30s
✓ Copied!
🔒 All OTP computation happens entirely in your browser — your secret key never leaves your device.
Ready Configure your secret and click Generate
— — — — — —
click to copy
Valid for 30s Next code in

// Features Why Use I7 Pixel's Free OTP / TOTP Generator?

Whether you're building 2FA into your own app, debugging an authenticator integration, or just need to understand how a one-time password is computed, this tool lets you generate and verify OTP codes exactly the way a real authenticator app would — with nothing sent to a server.

⏱️
Live TOTP Generation
Generate time-based one-time passwords per RFC 6238 with a live countdown showing exactly when the next code will roll over.
🔢
HOTP Counter Mode
Switch to counter-based HOTP generation per RFC 4226 to test systems that increment a counter instead of using the clock.
Code Verification
Check whether a given code matches your secret within a time window, useful for debugging failed 2FA logins.
🔡
6 or 8 Digit Codes
Adjust the output digit length to match the exact configuration expected by the app or service you're testing against.
Adjustable Time Step
Change the TOTP period away from the default 30 seconds to match non-standard authenticator configurations.
📱
QR Code & otpauth:// URI
Instantly generate a scannable QR code and standard otpauth:// URI to add the secret to Google Authenticator, Authy, or any TOTP app.
🎲
Random Secret Generator
Don't have a secret to test with? Generate a fresh Base32 secret key on the spot for quick experimentation.
🔒
100% Private — No Upload
Every HMAC-SHA1 computation happens locally in your browser using JavaScript. Your secret key never leaves your device.
🆓
Free Forever, No Signup
No account, no watermark, no install. Open the page, generate or verify a code, and you're done — completely free every time.

// Guide How to Generate & Verify OTP Codes — Step by Step

From secret key to working code in four straightforward steps.

1
Enter or Generate a Secret
Type in an existing Base32 secret key, or generate a new random one to experiment with.
2
Choose a Mode
Pick live TOTP, counter-based HOTP, or Verify mode to check an existing code against your secret.
3
Adjust Settings
Set digit length (6 or 8) and time step to match the authenticator app or service you're testing.
4
Copy or Scan
Copy the generated code, or scan the QR code into Google Authenticator, Authy, or any TOTP-compatible app.

// Deep Dive Understanding OTP, TOTP & HOTP

A little background on how one-time passwords actually work makes debugging 2FA issues far less mysterious.

⏱️

What Is TOTP?

TOTP (Time-based One-Time Password) is defined in RFC 6238 and is the algorithm behind almost every "authenticator app" code you've ever typed in. It takes a shared secret key and the current time, rounds the time down to the nearest step (usually 30 seconds), then runs both through an HMAC-SHA1 hash to produce a short numeric code. Because both your device and the server know the secret and the time, they can independently compute the same code without ever transmitting it.

🔢

What Is HOTP, and How Is It Different?

HOTP (HMAC-based One-Time Password), defined in RFC 4226, is TOTP's predecessor. Instead of using the current time, it uses a counter that increments by one every time a new code is generated. This is why some hardware security tokens with a physical button use HOTP — pressing the button increments the counter and produces the next code, with no clock required. TOTP is simply HOTP with the counter replaced by "current time ÷ time step."

🔑

Why the Secret Never Leaves Your Browser

Because TOTP and HOTP codes are derived entirely from a secret key plus a counter or timestamp, generating or verifying a code requires nothing more than local math — an HMAC-SHA1 hash computed with JavaScript's Web Crypto capabilities. There's no reason to send your secret anywhere, which is exactly how this tool works: every code shown or checked here is computed on your device, in your browser tab, and discarded the moment you navigate away.

// Reference TOTP vs HOTP vs Verify Mode

Quick guide to which mode fits the situation you're working with.

ModeBased OnWhere it's Used
TOTP Popular Current time Google Authenticator, Authy, Microsoft Authenticator, most app-based 2FA
HOTP Incrementing counter Hardware tokens with a physical button, offline OTP devices, legacy 2FA systems
Verify Popular Secret + submitted code Debugging failed logins, testing a backend 2FA implementation, QA of login flows
6-digit Digit length setting Default for nearly all consumer authenticator apps
8-digit Digit length setting Some enterprise and banking systems that require longer codes
otpauth:// URI Standard provisioning format Scanning a new secret into an authenticator app via QR code

// Use Cases Who Needs an OTP / TOTP Generator?

Understanding and testing one-time passwords matters well beyond just logging in — this tool covers every common scenario.

🧑‍💻
Backend Developers
Test a 2FA implementation end-to-end by generating expected codes and comparing them against what your server produces.
🧪
QA & Test Engineers
Generate valid TOTP codes on demand to automate or manually step through login flows that require 2FA.
🛡️
Security Engineers
Verify that a client or server's OTP implementation follows RFC 6238 / RFC 4226 correctly before shipping it.
📚
Students Learning Cryptography
See TOTP and HOTP in action to understand HMAC-based one-time password algorithms taught in security courses.
🔧
Support & DevOps Teams
Quickly regenerate a code from a known secret to help a locked-out user or debug a 2FA-related support ticket.
🏗️
Anyone Building 2FA Into an App
Prototype the full setup-and-verify flow — secret generation, QR provisioning, and code checking — before writing any backend code.

// FAQ Frequently Asked Questions

Answers to the most common questions about generating and verifying OTP / TOTP codes with this tool.

Yes — completely free. There are no limits, no accounts, no watermarks, and no charges. Generate and verify as many codes as you need.

No — never. All OTP and TOTP computation happens locally in your browser using HMAC-SHA1. Your secret key never leaves your device.

TOTP generates a new code every fixed interval, typically 30 seconds, based on the current time. HOTP generates a code based on a counter that increments each time a code is requested, rather than the clock.

Yes. Enter or generate a Base32 secret, then use TOTP or HOTP mode to produce codes exactly as an authenticator app would, or use Verify mode to confirm a code matches a given secret and time window.

Yes. The tool generates a standard otpauth:// URI and a scannable QR code that works with Google Authenticator, Authy, Microsoft Authenticator, and any RFC 6238-compliant authenticator app.

The tool uses HMAC-SHA1 as specified in RFC 6238 and RFC 4226, the algorithm supported by virtually every authenticator app. You can choose 6 or 8 digit codes and adjust the time step to match your target system.

// Reviews User Ratings & Feedback

Tried the tool? Leave a quick rating and help others find it.

☆☆☆☆☆
No reviews yet
5 ★
0%
4 ★
0%
3 ★
0%
2 ★
0%
1 ★
0%
Rate this tool
You already left a review. Thank you! ✓
0/400
✓ Thanks! Your review has been saved and will appear below.
Loading reviews…

// Related More Free Tools You Might Need

All tools at I7 Pixel run in your browser — no uploads, no accounts, always free.