Skip to content
HashlLab

HMAC Generator

Create keyed message authentication codes with HMAC-SHA-256, SHA-384, SHA-512 or SHA-1.

In browserOpen

Loading tool…

About this tool

  • Runs entirely in your browser. Nothing you enter is uploaded.
  • Uses the Web Crypto API built into your browser.
  • Handy for checking webhook signatures.

How it works

The key can be entered as text, hex or Base64. The message is signed with HMAC-SHA-256, SHA-384, SHA-512 or SHA-1 through the Web Crypto API, and the result is shown in hex and Base64.

Questions about HMAC Generator

Help center
What is the difference between a hash and an HMAC?

Anyone can compute a plain hash. An HMAC mixes in a secret key, so only someone who knows the key can produce or check it. That makes HMAC suitable for authenticating messages such as webhook payloads and API requests.