HMAC Generator
HMAC Generator computes the HMAC-SHA1, SHA-256, SHA-384 or SHA-512 signature of a message with a secret key; the key can be entered as text, hex or Base64. Handy for verifying webhook signatures and signing API requests. The key and message never leave your device.
The key and message never leave your browser.
How it works
- 1Type or paste the message.
- 2Enter the secret key and choose its format (text, hex, Base64).
- 3Choose the algorithm; the HMAC appears right away as hex and Base64.
- 4Copy the output you need with "Copy".
Frequently asked questions
What is the difference between HMAC and a plain hash?−+
Anyone can compute a plain hash; HMAC needs a secret key, so it proves both the integrity and the origin of a message.
How do I verify a webhook signature?−+
Enter the raw request body as the message and the shared secret as the key, then compare the result with the signature the provider sent (hex or Base64).
Why is there no MD5?−+
MD5-based HMAC is no longer recommended and is not available in the browser's Web Crypto.
Is my key sent anywhere?−+
No, the computation runs entirely in your browser.
Embed on your site
<iframe src="https://toolsqube.com/en/security/hmac-generator/embed" width="480" height="360" style="border:0;border-radius:14px" title="HMAC Generator · ToolsQube" loading="lazy"> </iframe>
Want to go deeper on this topic: Encoding and Security Guide →