How to generate HMAC signatures online
Enter a message and secret key — get an HMAC hex digest using the Web Crypto API.
Webhooks, API signatures, and JWT alternatives often use HMAC. The HMAC Generator computes SHA-256, SHA-384, or SHA-512 HMAC in your browser.
How it works
- Message — the payload to sign.
- Secret key — shared secret between sender and verifier.
- Algorithm — SHA-256 is the default choice for most APIs.
When to use HMAC
HMAC verifies that a message was not tampered with and was sent by someone who knows the secret. Common in webhook verification (Stripe, GitHub, Slack) and API request signing.
Output format
Lowercase hexadecimal string — the standard format expected by most API documentation.