Base64 Key Generator (openssl rand -base64 32)
Generate the exact same cryptographically random Base64 key as openssl rand -base64 32 right in your browser. Supports 16, 24, 32, 48, and 64 random bytes in standard or URL-safe Base64.
In plain terms: a gaming PC guessing a million passwords per second would need 132,943,112,026,157,700,000,000,000,000,000,000 quintillion times the age of the universe. Even someone renting every cloud server on Earth — a trillion guesses per second — would need 132,943,112,026,157,700,000,000,000,000 quintillion times the age of the universe. Nobody is guessing this password; the only realistic risks are it being reused or phished.
Generated Base64 keys
Matching CLI Commands
OpenSSL CLI equivalent (32 random bytes → 256 bits)
openssl rand -base64 32Node.js one-liner
node -e "console.log(require('crypto').randomBytes(32).toString('base64'))"Python 3 one-liner
python3 -c "import base64, secrets; print(base64.b64encode(secrets.token_bytes(32)).decode())"# Drop-in 32-byte (256-bit) Base64 secrets
AUTH_SECRET="<paste-32-byte-base64-key>"
ENCRYPTION_KEY="<paste-32-byte-base64-key>"
JWT_SECRET="<paste-32-byte-base64-key>"Standard Base64 vs. URL-Safe Base64URL
Standard Base64 (RFC 4648 §4)
Uses A-Z, a-z, 0-9, +, /, and = padding. Exact output of openssl rand -base64 32. Best for .env keys, Laravel APP_KEY, NextAuth, WireGuard PSKs, and Kubernetes Secrets.
Base64URL (RFC 4648 §5)
Replaces + and / with - and _ and strips = padding. Safe inside query strings, URL paths, HTTP headers, and cookies without percent-encoding.
Related Generators
100% browser-local · Identical entropy to OpenSSL
Every key is created locally from crypto.getRandomValues(new Uint8Array(32)) and encoded directly to Base64—never sent over the network. A 32-byte Base64 key carries a full 256 bits of entropy in just 44 characters (33% shorter than hex), ideal for AUTH_SECRET, APP_KEY, AES-256 keys, and JWT secrets.