HMAC Generator
Sign a message with a secret key using HMAC (SHA-1, SHA-256, SHA-384, SHA-512). Useful for webhooks and API signatures.
Also called: HMAC SHA256 generator, HMAC calculator.
HMAC Generator
Sign a message with a secret key using HMAC (SHA-1, SHA-256, SHA-384, SHA-512). Useful for webhooks and API signatures.
Watch: how to use the HMAC Generator (14 seconds)
Recorded on a phone, steps written on screen, no sound.
About the HMAC Generator
Sign a message with a secret key using HMAC-SHA256, SHA-1, SHA-384 or SHA-512 and get the signature in hex and Base64 — useful to test webhook and API signatures.
Use test keys: your key is processed in your browser by the Web Crypto API and not sent anywhere, but live secrets are best kept off any website.
How to use the HMAC Generator
- Add your inputFill in secret key and message. An example is already filled in, so you can press Run tool first to see how it works.
- Pick the optionsalgorithm (the defaults suit most uses).
- Press Run toolThe result appears right under the button.
- Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.
This tool works inside your browser: what you enter stays on your device.
Good to know
- What you need
- You type or choose: Secret key, Message
- Where it runs
- In your browser, on your device.
- Cost
- Free, no sign-up.
Questions
Why doesn't my signature match?
Check for extra spaces or line breaks in the message; they change the result.
Which algorithm do webhooks use?
Most use HMAC-SHA256.