Home / Developer / Random Key Generator (Hex & Base64)
Random Key Generator (Hex & Base64)
Generate secure random 128, 256 or 512-bit keys and secrets as hex, base64, base64url or a byte array.
Free, no uploads, no sign-up. Runs 100% in your browser.
How Random Key Generator (Hex & Base64) works
Everything runs in your browser. Nothing is uploaded, and no account is needed. Bytes come from crypto.getRandomValues, the browser's cryptographically secure generator. The equivalent openssl command is shown too.
Output: Text.
How to use Random Key Generator (Hex & Base64)
- Pick the length in bits.
- Pick the format.
- Generate one or many.
- Copy the key.
Tips
- Use 256 bits for AES-256 and HMAC-SHA256 secrets.
Random Key Generator (Hex & Base64) FAQ
- Are my files uploaded?
- No. This tool runs entirely in your browser tab. Files are read from your disk into memory and the result is generated locally.
- Is it free? Are there limits or watermarks?
- Free. There are no file-size caps, daily quotas, accounts or watermarks.
- Does it work offline?
- Yes, once the page (and any engine it needs) has loaded, it keeps working without a connection thanks to the service worker cache.
Related tools
- Password Generator: Strong random passwords and passphrases with strength meter.
- RSA / ECDSA / SSH Key Generator: Generate Ed25519, ECDSA and RSA key pairs as OpenSSH, PEM and JWK.
- UUID Generator: Generate v4 and v7 UUIDs in bulk.
- JSON Formatter: Prettify, validate, minify and explore JSON as a tree.