HMAC Generator
Generate HMAC signatures with the Web Crypto API — nothing is sent to a server
About this tool
HMAC Generator runs entirely in your browser on DevTools — no signup, no upload.
What this tool does not do
- HMAC Generator is a free in-browser utility, not a hosted API, and keeps no server-side history.
How to use this tool
Using HMAC Generator
Open HMAC Generator, enter or paste your input, and copy the result.
Frequently asked questions
What is HMAC used for?
It produces a fixed-size signature that proves a message has not been tampered with AND comes from someone who holds the secret key. Common uses are API request signing (Stripe, GitHub, AWS), webhook payload verification, signed cookies, and CSRF tokens — anywhere the receiver needs to confirm the sender's identity and message integrity in one step.
Which algorithm should I pick?
HMAC-SHA256 is the safe default and what most modern APIs use. HMAC-SHA1 exists for legacy compatibility with older webhooks but should not be used in new designs; HMAC-SHA384 and HMAC-SHA512 are stronger and only required when the receiving system specifies them.
Hex or Base64 — does it matter?
Both encode the same bytes; pick whichever the receiving API expects. Hex is case-insensitive and easy to compare visually, while Base64 is shorter (~25% fewer chars) and common in HTTP headers. An HMAC decoded from hex and re-encoded as Base64 will still verify, because the underlying bytes are identical.
Does my secret key leave the browser?
No. The HMAC is computed using the Web Crypto API entirely in your browser; the key, the message, and the resulting signature are never sent to a server.
Related guides
Encryption Tools Explained: AES vs BCrypt vs HMAC
Three cryptographic primitives developers constantly confuse — reversible encryption (AES), password hashing (BCrypt), and message signing (HMAC). What each one is for, and how to pick correctly.
JSON Web Tokens (JWT) Explained: A Complete Guide for Developers
What a JWT is, how the header.payload.signature structure works, which claims matter, and how to sign and verify tokens securely — with examples you can run in your browser.
Generating Secure API Tokens and Secrets in the Browser
How to create cryptographically strong tokens, sign payloads with HMAC, and encrypt data with AES — all client-side, with nothing sent to a server.
Related tools
AES Encryption
Encrypt and decrypt text with AES-GCM and a passphrase, fully in your browser. Uses PBKDF2 key derivation and the Web Crypto API — your data and keys never leave your device.
Basic Auth Generator
Generate an HTTP Basic Authentication header from a username and password. Produces the Authorization header and ready-to-use curl and fetch snippets. Runs fully client-side.
Bcrypt Generator & Verifier
Hash passwords with bcrypt and verify hashes — choose your cost factor (rounds 4–15), get a secure hash instantly, and check whether a password matches a hash. Runs entirely in your browser.
BIP39 Mnemonic Generator
Generate and validate BIP39 seed phrases locally for testing
Checksum Calculator
Compute file checksums (SHA-1, SHA-256, SHA-384, SHA-512) in your browser with the Web Crypto API
Client-Side File Encryptor
Encrypt any file with AES-256-GCM and PBKDF2 directly in your browser — no uploads, no accounts, wrong passwords fail loudly.