HMAC Secret Generator
Generate a random HMAC secret (hex + Base64) for message authentication. All values are generated on your device using a cryptographically secure random generator — nothing is sent to a server.
Everything runs in your browser. Your data is never sent to our servers.
Example
Example Input
(click Generate)
Example Output
Hex: 9b1c… Base64: mxw…
How to Use
- 1Open "More settings" to adjust parameters (e.g. size/length) if needed.
- 2Click the Generate button.
- 3Copy the result with the Copy button.
About HMAC Secret
HMAC uses a shared secret to create and verify message authentication codes (MACs). Its strength depends on a random, sufficiently long secret.
This tool generates a random secret (default 32 bytes) via the browser CSPRNG and shows it in hex and Base64. It suits HMAC-SHA256, webhook signing, and session tokens.
Store the secret securely and share it only with authorized parties. To HMAC a message, use the HMAC tool in the Hash category.
FAQ
Are my data or keys sent to a server?
No. HMAC Secret runs entirely in your browser using the Web Crypto API and client-side libraries. Your data, passwords, and keys never leave your device.