HMAC Generator — Keyed Message Authentication
Signs a message with a shared secret using HMAC-SHA, so you can reproduce the signature a webhook sender computed.
Loading the tool…
How to use this tool
- Paste the exact message body that was signed — byte for byte, before any parsing or re-formatting.
- Type the shared secret into the key field. It stays in this page.
- Choose the algorithm and output encoding the sender documents, usually SHA-256 in hex.
- Select Sign and compare with the signature header. If it does not match, suspect the message bytes before you suspect the key.
What hmac generator does
An HMAC is a hash with a key mixed in. Anyone can compute the SHA-256 of a message, so a bare hash proves nothing about who produced it; an HMAC can only be produced by someone holding the secret, which is why almost every webhook signs its payload this way. Verifying one means computing the HMAC yourself and checking it matches the header you were sent.
That is the job this page does, and the reason it is worth doing here rather than on a server you do not control: the secret is typed into a form on this page, used by your browser’s own Web Crypto implementation, and never transmitted. If a test signature will not match, the cause is almost always the exact bytes being signed — a trailing newline, a re-serialised JSON body, or the raw body having been parsed and re-encoded before you got to it.