Free Toolkit

TOTP ValidatorValidate TOTP codes against a shared secret with configurable time window.

TOTP Validator illustration
🔐

TOTP Validator

Validate TOTP codes against a shared secret with configurable time window.

How to Use
1

Enter Secret

Base32 secret.

2

Enter Code

TOTP code.

3

Validate

Check code.

What Is TOTP Validator?

Validates TOTP codes against a shared secret, checking current and adjacent time windows for clock skew tolerance. Uses HMAC-SHA1 via Web Crypto API. Reports match status and time offset. Essential for testing 2FA and debugging auth. All processing is client-side.

Why Use Our TOTP Validator?

  • Configurable time window
  • Reports time offset
  • Standard parameters
  • 100% client-side

Common Use Cases

2FA Testing

Test implementations.

Troubleshooting

Debug rejected codes.

Migration

Verify secrets.

Audit

Test config.

Technical Guide

Generates expected code for time steps T-window to T+window. Computes HMAC-SHA1 with dynamic truncation per RFC 4226. Window=1 checks 3 steps allowing 30-90s drift.

Tips & Best Practices

  • 1
    Window=1 is standard
  • 2
    Larger window helps drift
  • 3
    Offset shows drift direction
  • 4
    Match period and digits

Related Tools

Frequently Asked Questions

QFree?
Yes.
QWindow?
Checks adjacent periods.
QSecret safe?
Yes.
QNon-zero offset?
Clock drift, still valid.
QCustom period?
Yes.

About TOTP Validator

TOTP Validator is a free online tool from FreeToolkit.ai. All processing happens directly in your browser — your data never leaves your device. No registration required. No ads. Just fast, reliable tools.