HMAC Generator
Generate an HMAC from a message and secret key with SHA-1, SHA-256, SHA-384 or SHA-512.
How to use it
- Enter your message The data to authenticate.
- Enter the secret key The shared key for the HMAC.
- Choose an algorithm SHA-1 through SHA-512.
Examples
| SHA-256 | 64 hex chars |
|---|---|
| key + message | signed |
About this tool
An HMAC combines a message with a secret key to produce a signature that both proves integrity and authenticates the sender — the mechanism behind signed API requests and webhooks. This generator computes one from your message and key using the SHA family.
It runs entirely in your browser through the native Web Crypto API, so your secret key and message stay private. Pick the algorithm your service expects and copy the resulting hex digest. Everything is computed locally.
Frequently asked questions
What is an HMAC?
A hash-based message authentication code proves a message hasn't been tampered with and comes from someone who knows the secret key. It's used to sign API requests and webhooks.
Is my key sent anywhere?
No. The HMAC is computed entirely in your browser with the Web Crypto API, so the message and key never leave your device.
Related tools
Updated June 15, 2026