HMAC Generator
Generate Hash-based Message Authentication Codes (HMAC) with custom secret keys. Fast, secure, and run locally on your device — no files or text are ever uploaded.
How HMAC Generator Works
Produces an HMAC over a message you enter, using a secret key you type and a choice of SHA-1, SHA-256, SHA-384, or SHA-512 as the underlying hash. The result is shown as hexadecimal. The key and message are processed in your browser through the platform crypto API, and nothing is sent to a server.
Hash Output Example
Generate an HMAC-SHA256 signature of a webhook payload with your shared secret to confirm the request came from the expected sender.
Frequently Asked Questions
How is the secret key interpreted?
The key field is read as plain text and encoded as UTF-8 before use, so it is not parsed as hex or base64. Enter the exact string your system uses, including any case and spacing, because a single difference produces a different HMAC.
Which HMAC algorithms can I choose?
The tool offers HMAC-SHA1, HMAC-SHA256, HMAC-SHA384, and HMAC-SHA512. Pick the one your API or signing scheme specifies, since the output length changes with each algorithm.
Does an HMAC encrypt my message?
No. An HMAC is a keyed authentication code that proves a message was produced by someone holding the key and was not altered. The message itself stays readable, so it provides integrity and authenticity but no confidentiality.
