HMAC Generator

Create HMAC-SHA256/384/512 signatures for webhooks and APIs, in your browser.

Hashes and passwords Runs in your browser: nothing you enter is sent to a server.

Hex
–
Base64
–

About the HMAC Generator

An HMAC (hash-based message authentication code) combines a secret key with a message, so only someone with the key can produce or verify the signature. Webhooks (Stripe, GitHub, payment providers) and many APIs sign their requests this way.

Enter the message and the key to compute the HMAC in hex and Base64, for example to compare with a signature header while debugging an integration. The key never leaves your browser.

How to use it

  1. Paste the exact message (the raw request body for webhooks).
  2. Enter the secret key and choose the algorithm.
  3. Compare the result with the signature you received.

Frequently asked questions

Why does my webhook signature not match?

Usually the message differs: it must be the raw body bytes exactly as sent, before any JSON parsing or reformatting, and some providers sign a timestamp plus the body. Also check the key encoding (text, hex or Base64) and the algorithm.

How should signatures be compared in code?

With a constant-time comparison (for example crypto.timingSafeEqual in Node.js or hmac.compare_digest in Python), never with ==, to avoid timing attacks.

Is HMAC-SHA1 still secure?

HMAC-SHA1 is not broken in the way SHA-1 collisions are, but HMAC-SHA256 is the recommended choice for new systems.

All free tools