HMAC Generator & Verifier

Generate and verify HMAC signatures with SHA-256, SHA-512, SHA-384, SHA-1, MD5 and SHA-3. Validate webhook signatures from GitHub, Stripe, Slack and Shopify.

Runs 100% in your browser. Nothing you paste is uploaded.

About the HMAC Generator

HMAC (Hash-based Message Authentication Code) proves a message came from someone holding a shared secret. It is how GitHub, Stripe, Slack, Shopify and countless other services sign webhooks, and how HS256 JWTs are signed.

Enter the secret and payload to compute HMACs with every common hash, or paste a received signature to check it — the sha256= prefix used by GitHub is ignored automatically.

Features

  • HMAC with SHA-256, SHA-512, SHA-384, SHA-224, SHA-1, MD5, SHA3 and RIPEMD-160
  • Key as text, hex or Base64
  • Hex, Base64 or Base64URL output
  • Signature verification

How to use it

  1. Enter the shared secret and choose its encoding.
  2. Paste the exact raw message body.
  3. Copy the HMAC, or paste a received signature to verify it.

Frequently asked questions

Why doesn’t my webhook signature match?

The message must be the raw request body byte-for-byte — re-serialised JSON (different spacing or key order) produces a different HMAC. Some providers (e.g. Stripe, Slack) also sign a timestamp prefix like t.body.

What is the difference between HMAC and a hash?

A hash can be computed by anyone; an HMAC requires the secret key, so it authenticates the sender as well as the content.

Esc