Token Generator
Generate cryptographically secure random tokens for APIs, sessions, encryption, and more. Everything runs in your browser.
Tips
128 Bits Is Practically Unbreakable
A 128-bit token has 340 undecillion possible values. Even checking a trillion per second, it would take longer than the age of the universe to try them all.
Hex Is Great for Debugging
Hexadecimal tokens are easy to read in logs and config files. Each character represents exactly 4 bits, making byte boundaries visually clear.
Base58 Avoids Confusing Characters
Base58 excludes 0, O, I, and l — characters that look alike in many fonts. This makes tokens easier to copy manually without errors.
URL-Safe Tokens Need No Encoding
Standard Base64 uses + and / which must be percent-encoded in URLs. URL-safe format replaces them with - and _, and removes padding (=), so tokens work directly in query strings and paths.
Common Use Cases
API Key Generation
Create strong, unique API keys for authenticating services and applications.
Session IDs & CSRF Tokens
Generate unpredictable session identifiers and CSRF protection tokens for web applications.
One-Time Links
Create secure URL-safe tokens for password reset links, email verification, and invite URLs.
Encryption Keys & IVs
Generate raw cryptographic material for symmetric encryption keys and initialization vectors.
Unique Identifiers
Produce random IDs as an alternative to UUIDs, with configurable length and format.
Webhook Secrets
Generate shared secrets for verifying webhook signatures between services.