Secret Key Generator
256-bit (128 to 512-bit) secret keys formatted as Hex, Base64, and Base64URL.
Generating…256 bitsVery strongOffline crack estimate (10B/s): billions+ years
Computed locally via Web Crypto. Secrets never leave this browser tab.
How to use Secret Key Generator
Choose a key size from 128-bit up to 512-bit (default 256-bit).
Inspect the same raw random bytes rendered simultaneously as Hex, Base64, and URL-safe Base64URL.
Click the copy button beside the encoding required by your application or environment file.
Frequently asked questions
What key size should I use for HMAC or AES?
256-bit (32 bytes) is recommended for AES-256 and HMAC-SHA256 secrets.