The quick answer
Paste a message into the text box, type a secret into the key field, and the page computes an HMAC-SHA256 signature, 64 hexadecimal characters, using the browser's Web Crypto API. HMAC (RFC 2104) authenticates messages: same key and message, same signature, every time. The Digests panel also lists the plain MD5, CRC32 and SHA-1/256/384/512 hashes of the same message for comparison. Nothing uploads; no signup.
What HMAC actually is
HMAC, the hash-based message authentication code, turns a message and a secret key into one fixed-length signature. Anyone holding the key can recompute it and confirm the message is intact and authentic; anyone without the key cannot forge a valid one.
The workflow is two inputs. Paste the message, type the secret key, and the HMAC-SHA256 signature appears as 64 hexadecimal characters, recomputed live as either input changes. The page also lists the plain digests of the same message, so a signature and its underlying hash sit side by side.
Signing a message, step by step
Paste the message
The Text to hash box takes any text. The Digests panel appears the moment the box is non-empty, and every digest recomputes about a quarter-second after each keystroke; the update is debounced so typing stays smooth.
Type the secret key
The Secret key field is a password input, so the value stays masked on screen. The moment both the message and the key are non-empty, an HMAC-SHA256 row appears in the Digests panel with its own Copy button. SHA-256 is the only HMAC variant on this page; there is no algorithm selector.
Read the panel
Above the signature row sit the plain digests of the same message: MD5, CRC32, SHA-256, SHA-1, SHA-384 and SHA-512. Same message, same numbers, every run; an empty message clears the whole panel.
Copy the signature
Each digest box has its own Copy button. The HMAC-SHA256 signature is 64 lowercase hex characters; servers that emit uppercase hex are showing the same bytes.
Close the tab when done
Nothing is stored: no history, no server copy, no residue. Closing the tab erases both fields, and the key field was masked the whole time.
The construction: two hashed rounds
HMAC's construction, defined in RFC 2104, hashes the message twice with the key mixed into both rounds: the inner hash processes key and message together, and the outer hash processes the key and that digest. The output is the signature you copy.
The two-round design exists because plain hashes have length-extension quirks: an attacker can append data to some hashed messages and compute a plausible continuation. HMAC's outer round breaks that carry-over, which is why APIs sign with HMAC instead of a bare digest.
Input
Message: Hello Secret key: secret
Output
HMAC-SHA256: 0cc692f2177b42b6e5cd82488ee6c5d526a007c571e7de1fec07c1e2b1dfa2e2
Recompute that pair by hand in Node or Python and you get the same 64 characters. A well-known published test vector also checks out: the message 'The quick brown fox jumps over the lazy dog' with the key 'key' yields f7bc83f430538424b13298e6aa6fb143ef4d59a14946175997479dbc2d1a3cd8, byte for byte what the engine emits.
Who signs with HMAC, and why
Webhook verification is the everyday case: the sender signs the request body with a shared secret, the receiver recomputes the signature, and a mismatch means the request is rejected. API documentation ships exactly this recipe, in dozens of dialects.
Developers land here while wiring a webhook, reproducing a signature from documentation, or debugging a rejected request. Recompute both sides with the same key and body, and the disagreement usually turns out to be encoding, not cryptography.
What the tool commits to, plainly
The table summarizes what the page does; verify any row yourself, then rely on it.
| Aspect | This tool |
|---|---|
| Processing | 100% client-side JavaScript, Web Crypto API, in your browser tab |
| Signup required | None: no account, no email |
| Data uploaded | Never; message and key stay in the tab |
| Offline use | Works after first load; this tool has no live data |
| Cost | Free, with ads placed away from the controls |
What HMAC does and does not promise
HMAC is authentication, not encryption: the signature proves the message and key matched, but it hides neither. A weak shared secret is still weak; HMAC with a guessed key is as broken as the key. The boundaries below are the ones that matter in practice.
- One variant only: this page computes HMAC-SHA256. An API contract asking for HMAC-SHA1 or HMAC-SHA512 needs a different signer, and the plain SHA-1 and SHA-512 digests on the page are not signatures.
- No key derivation: the key you type is the key used, with no salting or stretching. Real deployments often derive keys through a KDF first; reproduce that derivation before comparing.
- Verification is a comparison, not a computation: the tool generates signatures; your server code is what accepts or rejects them, and it should compare in constant time.
Your keys never leave the browser
The entire point of a local signer is that the secret never transits. Message and key stay in the tab's memory, and the signature is computed by JavaScript you can read with view-source. Nothing is logged, stored or sent to any server.
How this page compares with the alternatives
The same signature exists in several other places. The table shows what each lane trades.
| Alternative | Why people pick this page instead |
|---|---|
| Command line (openssl dgst -sha256 -hmac) | The same signature without remembering flags, and without the key landing in shell history |
| Language runtimes (Node crypto, Python hmac) | One-off verification without writing and running a script |
| Server-side signers | The key never crosses the network at all; there is no request to log |
Signing habits that prevent bugs
Most rejected signatures trace to the inputs, not the cryptography. When something behaves unexpectedly, the cause is almost always one of these:
- Signature mismatch on a webhook: recompute over the exact raw body. A parser that re-serializes JSON changes spacing, and the signature follows the bytes, not the meaning.
- HMAC row missing from the panel: the row appears only when both the message and the key are non-empty; an empty message clears every digest.
- Key with a trailing space: the password field preserves it exactly, so a pasted key with a stray space produces a valid but different signature than the sender's.
- Case mismatch in the hex: the tool emits lowercase and many servers emit uppercase. Same bytes, same signature; compare case-insensitively.
Frequently asked questions
These are the questions people actually ask about HMAC generation: key safety, algorithm choice, offline use, storage. Each answer states the mechanism rather than a promise.
Is the HMAC Signature Generator free to use?
Yes. HMAC Signature Generator is completely free, with no account, no email gate and no cap on how often you use it. The whole computation is local JavaScript, which is exactly why it can stay free: there is no per-use backend to charge for. It behaves the same on the first visit and the five-hundredth.
Can a signature from the HMAC Signature Generator be forged without the key?
No. HMAC-SHA256 is a 256-bit keyed fingerprint: without the secret key you cannot compute a valid signature for a new message. The message itself is not hidden, though, because HMAC is authentication, not encryption. If you need secrecy, encrypt the message first, then sign it.
Can I use the HMAC Signature Generator offline?
Yes: load the page once and it remains usable on a plane or in a dead zone, because nothing about the computation requires the network. The Web Crypto API it calls is part of your browser, not a service.
Does pasting API keys and tokens here put them at risk?
The computation is local, so the page adds no network exposure: the key field is a password input, no request carries it anywhere, and closing the tab clears it. The habit risk is yours to judge; when a secret is sensitive enough to guard, doing the math in your own script is the stricter option.
Do you store what I enter into the HMAC Signature Generator?
No. All processing happens on your machine. Your message and key are not transmitted, not logged, not retained; verify it yourself by watching the network tab while you work.
Why does the page also show MD5 and CRC32?
The Digests panel lists the plain MD5, CRC32, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of your message alongside the signature, because installers, archives and legacy systems still publish those checksums. For anything adversarial, HMAC-SHA256 is the row that matters.
Sources and further reading
The construction claims on this page trace to the keyed-hash literature and the hash standards; the links below are the primary sources.
Sources and further reading
- NIST SP 800-63B: digital identity and password guidelines(pages.nist.gov)
- OWASP Password Storage Cheat Sheet(cheatsheetseries.owasp.org)
- RFC 4122: UUIDs (IETF)(datatracker.ietf.org)
- NIST SHA-3 standard publication(nist.gov)
- RFC 4648: Base64 encoding (IETF)(datatracker.ietf.org)
We cite primary sources (standards bodies, government agencies, official documentation) wherever they exist so you can verify every number on this page yourself.