What Is HMAC Generator?
The HMAC Generator signs a message with a shared secret using SHA-1, SHA-256, SHA-384 or SHA-512 through Web Crypto, entirely on your device. Paste text or read a file into an ArrayBuffer, and the page shows the tag in hex and base64 side by side, plus a byte count. A constant-time comparison mode lets you paste an expected tag and see a match verdict without timing the first mismatched byte. A published SHA-256 example pair lets you sanity-check your inputs against what any other conforming library should return.
Who Uses the HMAC Generator?
Backend developers signing webhooks, students following RFC 2104, and API testers who want to see the exact byte string a client produced without shipping their key to a server.
How to Use the HMAC Generator
- Type or paste the shared key, switch between raw text and Base64, and pick the algorithm.
- Enter the message body, or choose Read a file and load it as an ArrayBuffer.
- Copy the hex or base64 tag, or paste an expected tag into the verify box and press Compare.
Why Choose Our HMAC Generator?
- Four SHA-family algorithms through crypto.subtle, nothing uploaded
- File signing with byte count so you can match a server-side digest
- Constant-time compare plus a self-check example you can reproduce
Try the HMAC Generator above — it is free, fast, and works on any device. Bookmark this page to return whenever you need it.