🎲

Random Token Generator

Web Crypto API

Generate cryptographically secure random tokens in hex, base64, alphanumeric, and more. API keys, OTPs, session tokens — all in one place.

Presets:
Format
Length (bytes)32
Count1
Prefix (optional)
Output length
~64 chars
🎲

Click Generate to create secure random tokens

Common Use Cases
🔑
API Keys
32-byte hex
🍪
Session Tokens
48-byte base64url
📱
OTP Codes
6-digit numeric
🔗
Invite Links
8-char alphanumeric
🔒
CSRF Tokens
32-byte hex
📧
Email Verify
64-byte base64url
🔐
Cryptographically Secure
Uses Web Crypto API's getRandomValues — not Math.random(). Safe for security tokens.
⚡
6 Formats
Hex, Base64, Base64URL, Alphanumeric, Numeric, and Custom charset — all covered.
📋
Prefix Support
Add prefixes like sk_, pk_, tok_ to identify token type at a glance.