HMAC Generator
Create an HMAC signature from a message and secret key, for testing APIs and verifying webhook signatures.
How to use the HMAC Generator
- Enter the messagePaste the exact message or raw request body. Every space and line break changes the signature.
- Enter the secret keyType the shared secret as text, hex or Base64, and pick the algorithm (most APIs use HMAC-SHA256).
- Copy or compareCopy the signature in hex or Base64, or paste a received signature to check that a webhook really came from the sender.
Example
Message {"event":"payment.succeeded","id":"evt_123"} with key my-secret-key gives a 64-character hex HMAC-SHA256 signature.
Paste a header value like sha256=… into the compare box; the sha256= prefix is ignored.
Frequently asked questions
What is HMAC?
Hash-based Message Authentication Code: a signature made from a message and a secret key. Anyone with the key can check that the message was not changed and came from someone who knows the key.
Why does my webhook signature not match?
Usually the message differs: sign the raw request body exactly as received, not re-formatted JSON. Also check whether the provider includes a timestamp in the signed text and whether it expects hex or Base64.
Is it safe to enter my real secret?
The signature is calculated by your browser’s built-in Web Crypto API and nothing is sent anywhere. Still, prefer test keys when you can.