HMAC Calculator
Enter a message and secret key to instantly compute an HMAC digest using SHA-256, SHA-384, or SHA-512 — all in the browser with no data sent to any server.
HMAC Digest
HMAC-SHA-256 / Hex
Enter a message and key to compute the HMAC.
Digest lengths (hex chars)
| Algorithm | Hex | Base64 | Bits |
|---|---|---|---|
| HMAC-SHA-256 | 64 | 44 | 256 |
| HMAC-SHA-384 | 96 | 64 | 384 |
| HMAC-SHA-512 | 128 | 88 | 512 |
Copied to clipboard
Summary
Enter a message and secret key to instantly compute an HMAC digest using SHA-256, SHA-384, or SHA-512 — all in the browser with no data sent to any server.
How it works
- Enter the message you want to authenticate in the Message field.
- Type your secret key in the Key field.
- Select the hash algorithm: SHA-256, SHA-384, or SHA-512.
- Choose the output format — hexadecimal or Base64.
- The HMAC digest updates instantly using your browser's built-in WebCrypto API.
- Click Copy to copy the result to your clipboard.
Use cases
- Verify webhook signatures from payment providers or GitHub.
- Generate API request signatures for REST or GraphQL services.
- Test HMAC implementations during backend development.
- Authenticate messages between microservices during debugging.
- Validate that a secret key produces the expected digest for a known payload.
- Check token integrity in JWT or custom token schemes.
Frequently Asked Questions
Last updated: 2026-07-01 ·
Reviewed by Nham Vu