HMAC Generator & Verifier
Generate and verify HMAC signatures with SHA-1, SHA-2 or SHA-3 and flexible encodings.
How to use
Choose an algorithm and the exact encoding of the key, message and output. The signature updates live. In Verify mode, paste the expected signature; comparison covers every byte and does not return early. Keys remain only in this tab's memory.
The Stripe, GitHub and Slack cards demonstrate how each signed payload is assembled before HMAC-SHA-256 and how the resulting Header is shaped. Real webhook verification must use the unmodified raw request body, the provider's actual timestamp/version rules and freshness checks.
FAQ
What is the difference between a hash and HMAC?
A hash has no secret and only checks content equality. HMAC mixes a secret key into a hash construction so a verifier can authenticate who produced the signature.
Why does my webhook signature not match?
The usual causes are parsing or re-serializing the body, using the wrong timestamp separator, decoding the secret incorrectly, or comparing the wrong output encoding.
Is SHA-1 HMAC still supported?
Yes for compatibility, but new protocols should normally choose HMAC-SHA-256 or stronger unless a specification requires SHA-1.