HMAC Generator & Verifier.
Compute HMAC-SHA256, SHA1, SHA512 or MD5 signatures in hex or Base64 and verify webhook signatures.
Runs in your browserAbout HMAC Generator & Verifier
An HMAC is a keyed hash: it proves that a message was produced by someone who knows a shared secret and that it was not changed on the way. Webhooks from GitHub, Stripe, Shopify, Slack and many payment providers sign their request bodies this way, and APIs such as AWS use HMAC-SHA256 to sign requests. Enter the message and the secret, choose the hash function and the output format, and the tool computes the signature as you type. Keys and messages can be given as plain UTF-8 text, hex or Base64, which matters when a provider hands you a Base64-encoded secret: using the Base64 string as text produces a completely different HMAC. Paste the signature you received into the Expected field to verify it; prefixes such as sha256= are accepted, and both hex and Base64 forms are compared byte by byte. For example, the key Jefe with the message "what do ya want for nothing?" gives 5bdcc146…3843 with HMAC-SHA256, a test vector from RFC 4231. The most frequent reasons a signature does not match are signing a re-serialized JSON object instead of the raw body, a trailing newline added by an editor, the wrong key encoding, and comparing hex with Base64. Choose All to see every algorithm at once. The calculation runs locally and the page is marked sensitive, so your secret is never sent, logged or placed in the URL.
How to Use
- Paste the exact message or raw request body and enter the secret key.
- Choose the algorithm, the key encoding and the output format.
- Optionally paste the signature you received to check whether it matches.
Frequently Asked Questions
Why does my webhook signature not match?
Usually the message differs from the raw body the provider signed (pretty-printed JSON, a trailing newline, a different charset) or the secret was decoded differently. Sign the unmodified body and check the key encoding.
Is HMAC-SHA1 or HMAC-MD5 still safe?
HMAC remains secure even with SHA-1 or MD5 because it does not rely on collision resistance, but new systems should use HMAC-SHA256 or stronger.
Is HMAC the same as hashing the key and message together?
No. sha256(key + message) is vulnerable to length-extension attacks. HMAC wraps the hash twice with padded keys, which prevents that.
Is my secret key uploaded?
No. The HMAC is computed in your browser; the key and message never leave the page and are not stored in the URL.
Related Tools
Generate MD5, SHA-256, SHA-512, and other hashes.
Generate random strings, API keys and tokens with custom length, character set, hex or Base64 format and prefix.
Decode, inspect, and verify JSON Web Tokens.
Encode and decode Base64 strings.
Hash and verify passwords with bcrypt or Argon2.
Generate UUID v4, UUID v7, and ULID identifiers.