← All tools
Random Secret & API Key Generator
Generate random secrets, API keys, tokens, and encryption keys using the Web Crypto API. Choose the byte length and output encoding — hex, Base64, Base64url (URL-safe), Base58, or a custom alphabet — and copy or download. Presets cover common needs: a 256-bit AES key, a 512-bit JWT secret, a 32-byte API key, a CSRF token, and an OAuth client secret. The randomness comes from crypto.getRandomValues, so the output is cryptographically secure. Everything runs locally — your secret never leaves the browser.
—
All generated
Pick a preset or set the length and encoding.