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.
Use it to
- Reproduce the signature a webhook provider sends and compare it with the received header.
- Sign test requests for an API that uses HMAC authentication.
Limits
- HMAC proves integrity and authenticity only to parties that share the key.
- Prefer SHA-256 or stronger; SHA-1 is offered for compatibility with older systems.
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 centerWhat 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.