Code tool

OTP Code Generator

Create temporary numeric or alphanumeric one-time passcodes locally. Nothing is uploaded, stored, or sent to a server.

In-browser processingNo account requiredPrivacy details ↗

Choose 4–32 characters.

Generate up to 50 at once.

Generated locally with the browser’s cryptographically secure random number generator. Do not use this for TOTP or HOTP verification.

A QUICK WALKTHROUGH

How to use this tool

  1. Choose the code length, character set, and number of codes.
  2. Generate the passcodes with your browser’s secure random number generator.
  3. Copy the results when you are ready to use them.

Private by default

Generation happens in your browser with crypto.getRandomValues. The codes are not sent to this site or saved after you leave the page.

OTP versus authenticator codes

This tool creates random one-time passcodes. It does not implement time-based or HMAC-based verification, so it cannot replace a TOTP authenticator or delivery service.

GOOD TO KNOW

Common questions

Are the generated codes secure?

The random selection uses the browser Web Crypto API and avoids modulo bias. Protect the generated code like any other secret.

Does this create TOTP codes?

No. It generates random passcodes; it does not accept a secret key or calculate time-based authenticator codes.

Are codes stored or uploaded?

No. Generation and copying happen locally in your browser.

How many codes can I create?

You can generate up to 50 codes at once, with lengths from 4 to 32 characters.