Token Generator
Generate cryptographically secure random tokens — hex, base64, alphanumeric for API keys, session tokens, CSRF tokens and more.
About Token Generator
This tool generates cryptographically secure random tokens using the Web Crypto API (crypto.getRandomValues) — the same entropy source used by browsers for TLS. Tokens generated here are suitable for use as session tokens, CSRF tokens, password reset tokens, email verification tokens, API keys, and OAuth secrets.
Hex encoding produces tokens containing only 0-9 and a-f characters. Base64 and Base64url produce more compact tokens using a wider character set. Alphanumeric tokens are URL-safe and human-readable. For most security use cases, 32 bytes (256-bit) provides excellent security with an astronomically small collision probability.