HMAC Generator
runs in your browserno sign-upfree
Generate HMAC-SHA256, SHA-1, SHA-384, SHA-512 and MD5 signatures with a secret key, in hex or Base64 — and check a webhook signature. Runs in your browser.
HMAC signatures
Webhooks (Stripe, GitHub, Shopify, Slack) usually sign the raw request body with HMAC-SHA256.
About this tool
Create HMAC signatures — a hash of a message mixed with a secret key — with SHA-256, SHA-1, SHA-384, SHA-512 or MD5, all at once. Choose whether the key is text, hex or Base64, and get the result as hex or Base64. Debugging a webhook? Paste the request body, your signing secret and the signature from the header: the tool tells you which algorithm matches. The key never leaves your browser.
How to use
- Enter the secret key and choose whether it is text, hex or Base64.
- Paste the message — for a webhook, the raw request body exactly as received.
- Copy the signature you need, in hex or Base64.
- To check a signature, paste it into “Check a signature” — the matching algorithm is highlighted.
FAQ
What is an HMAC?
A Hash-based Message Authentication Code proves that a message came from someone who knows the secret key and wasn’t changed. Unlike a plain hash, it can’t be recreated without the key. APIs use it to sign requests and webhooks (Stripe, GitHub, Shopify, Slack, AWS).
Why doesn’t my signature match?
Almost always the message differs: the signature covers the raw body byte for byte, so re-formatted JSON, an extra line break or a trailing space changes it. Also check the key format (some secrets are hex or Base64 encoded, or have a prefix like whsec_ that is part of the key) and the output format (hex or Base64).
Which algorithm should I use?
HMAC-SHA256 is the standard choice. SHA-512 is also excellent. HMAC-SHA1 and HMAC-MD5 are still secure as HMACs but considered legacy — use them only when a system requires them.
Is my secret key safe?
Yes. Signatures are computed in your browser with its built-in cryptography, and the key and message are never sent or saved.