HMAC Generator — HMAC-SHA256 and SHA-512 Webhook Signatures
Compute HMAC-SHA256 & HMAC-SHA512 webhook signatures with your secret key.
- HMAC is computed over the message bytes exactly as the server receives them. JSON that is re-formatted, gains spaces or has its keys reordered gives a different signature, so always sign the raw body.
- Keys longer than the hash block are hashed first under RFC 2104, as every standard library does.
When to use the HMAC-SHA256 / SHA512 Keyed Signature Generator
Check webhook signatures
Paste the raw webhook body and its secret, then compare the computed HMAC with the signature in the request header. The tool shows at once whether they match.
Formats popular services use
The result can be written as hex, Base64 or Base64url, and prefixed with the algorithm name such as sha256=… as GitHub's X-Hub-Signature-256 header uses. Algorithms range from HMAC-SHA256 to HMAC-MD5 for older systems.
Text, hex or Base64 keys
Many services issue secrets in Base64 or hex. Choose how the key is written so its bytes are right; keys longer than the hash block are hashed first under RFC 2104.
Tested against Python's hmac module
Every algorithm is tested against Python's hmac module with hundreds of random messages and keys, empty keys and keys longer than the hash block included.
Frequently asked questions
How is HMAC different from a plain hash?
HMAC uses a secret key, so only someone holding the key can produce a valid signature.
Why does my signature not match?
Check the raw body, a trailing line break, how the key is written, and whether the service adds a timestamp to the message before signing.
Is my key safe?
The key is only used in your browser and is not sent. Still use a test key when you can.
Which algorithm should I pick?
Follow the webhook sender's documentation; HMAC-SHA256 is the most common, while HMAC-SHA1 and HMAC-MD5 are only for older systems that cannot be changed yet.
Similar tools
- AES-256-GCM + PBKDF2 Browser Text EncryptorEncrypt plaintext using Web Crypto AES-256-GCM authenticated passphrase key.
- AES-256-GCM Browser Ciphertext DecryptorDecrypt Base64 AES-256-GCM payloads using your passphrase locally.
- Bcrypt ($2a$ / $2b$) Cost 4–14 Password Hash GeneratorGenerate salted PBKDF2-HMAC-SHA256 hashes with adjustable cost iterations.
- Bcrypt Hash vs Plaintext Password VerifierVerify plaintext passwords securely against generated salted hashes offline.