Skip to content
AlroundConverter

HMAC generator

Sign a message with a secret key using HMAC-SHA256, SHA384 or SHA512.

Runs in your browser – your files are not uploaded

How to use HMAC generator

  1. 1

    Choose the algorithm and the output format.

  2. 2

    Paste the message or request body and enter the secret key in the right format.

  3. 3

    Copy the signature and compare it with the one your service expects.

About HMAC generator

An HMAC is a signature calculated from a message and a secret key. APIs and webhook providers use it to prove that a request really comes from them and was not changed on the way. This tool calculates HMAC-SHA256, HMAC-SHA384 and HMAC-SHA512 so you can debug such signatures.

The key can be entered as plain text, hex or Base64, and the result is shown as hex or Base64 – the two formats most services use. Everything runs with the Web Crypto API in your browser; your key is never sent anywhere.

Frequently asked questions

Why does my signature not match the webhook's?

Usually the message is not byte-for-byte identical: extra whitespace, a reformatted JSON body or a missing timestamp prefix changes the result. Check the provider's docs for exactly what is signed.

Is HMAC-SHA1 or MD5 supported?

No. Only HMAC-SHA256, SHA384 and SHA512 are available. Older services that still require HMAC-SHA1 cannot be tested here.

Is it safe to enter my secret key?

The calculation happens locally and nothing is transmitted. Still, avoid pasting production secrets on shared or untrusted computers.