What is an HMAC generator?
An HMAC generator computes a Hash-based Message Authentication Code: a signature that binds your message to a secret key. Receivers who share the key can verify the message is authentic and untampered.
HMAC is everywhere — API request signing, webhook verification, JWT validation. This tool computes HMAC with SHA-1, SHA-256, SHA-384 or SHA-512 using the browser's native Web Crypto API, so your message and key never leave your device.
How to generate an HMAC signature
Enter the message and the secret key, pick the key format and hash algorithm, then press Generate.
The signature is shown as both hex and Base64 — use whichever your API or service expects, and copy it with one click.
Choosing the key format
Text keys are encoded as UTF-8 bytes. Hex and Base64 keys are decoded to raw bytes first, so a key stored in another encoding still produces the correct signature.
Choosing the hash algorithm
SHA-256 is the common default today. SHA-384 and SHA-512 offer a higher security margin, while SHA-1 remains only for legacy systems that still require it.
Common use cases
Use this tool to verify API signatures, debug webhook payloads, or cross-check an HMAC implementation against a known message and key.