HMAC Generator Online
Create HMAC signatures for API calls and webhook validation with SHA-256, SHA-384, or SHA-512. Fast local processing, no server upload.
HMAC Generator
Generate HMAC signatures locally in browser for API request signing and webhook verification.
What Is an HMAC Generator?
An HMAC generator creates keyed signatures by combining a message with a secret key and a hash algorithm. Unlike plain hash values, HMAC signatures prove both data integrity and shared-secret ownership, which is why they are common in payment APIs, webhooks, and signed URLs.
Common Use Cases
- Sign API requests with canonical strings and timestamps.
- Verify webhook payload signatures from third-party services.
- Debug signature mismatch between frontend and backend implementations.
- Test secret rotation behavior in staging environments.
HMAC Reference
| Algorithm | Typical Usage | Output (Hex) |
|---|---|---|
| HMAC-SHA-256 | Most API/webhook signing | 64 chars |
| HMAC-SHA-384 | Higher security policy | 96 chars |
| HMAC-SHA-512 | Long-digest requirements | 128 chars |
Common Mistakes
- Using different message canonicalization between signer and verifier.
- Encoding mismatch (UTF-8 vs other charsets) when building signed payload.
- Comparing Base64 signature with Hex output without conversion.
- Including extra newline or whitespace in the signed message.
Recommended Debug Flow
- Paste exact message bytes and secret used by backend.
- Select the same HMAC algorithm as production service.
- Switch output format (Hex/Base64) to match API docs.
- If message is JSON, normalize with JSON Formatter.
- If signature payload is encoded, inspect with Base64 Encode Decode.
Related Tools
Frequently Asked Questions
What is HMAC used for?▾
HMAC is used to verify message integrity and authenticity, commonly for API request signing and webhook validation.
What is the difference between hash and HMAC?▾
Hash uses only message input, while HMAC combines message and secret key to produce a keyed signature.
Which HMAC algorithm should I choose?▾
SHA-256 is the most common default. SHA-384/512 are used when systems require longer digests.
Is this HMAC tool local?▾
Yes. Signature generation runs in browser via Web Crypto API and does not upload your secret key.