HMAC Generator
An HMAC is a keyed hash: it proves both that a message has not been changed and that it came from someone who holds the secret key.
- Runs in your browser No upload — everything runs on your device.
- No sign-up, no watermark Free to use, no account needed.
- Files never uploaded Nothing leaves your device.
- 5,400+ tools, one site File, unit and currency tools in one place.
An HMAC is a keyed hash: it proves both that a message has not been changed and that it came from someone who holds the secret key. Enter the message, enter the secret key, and choose the hash underneath: SHA-256 by default, with SHA-512, SHA-384, SHA-1, and MD5 available. The output is the hexadecimal authentication code. The same key and message always give the same code, and changing either one changes it completely. Services use HMACs to sign API requests and webhooks, so the receiver can verify a request is genuine without sharing a password in the message itself. Unlike a plain hash, an HMAC is useless to an attacker who does not know the key, which is what makes it an authentication mechanism rather than a fingerprint. The key must stay secret; anyone who has it can forge codes. Everything is computed locally in your browser, and the key and message never leave the page.
How to use HMAC Generator
- Paste your text type, paste (Ctrl+V) or drop a .txt file into the box above.
- Click Convert the tool runs entirely in your browser — nothing is uploaded.
- Read your results they appear below the tool as soon as the conversion finishes.
- Download the result save it for your records.
- Convert another clear the box and paste new text — no sign-up, no limits.
Format facts
| Input | Any plain text, or a .txt file (dropped or browsed). |
|---|---|
| Engine | Built-in browser engine |
| Category | Developer Tools |
Limits
- Browser processing has practical limits: files over 200 MB (or very long media) may be too large for your device. You will get an honest “too large” message, never a fake result.
- Pasted content is handled as plain text — formatting from documents is not preserved.
Frequently asked questions
What is the difference between HMAC and a plain hash?
A plain hash needs no key, so anyone can compute it. An HMAC needs the secret key, so it also proves who produced it.
Which algorithm should I use?
SHA-256 is the default and the usual choice. SHA-512 gives a longer code; SHA-1 and MD5 are offered for compatibility with older systems.
Where are HMACs used?
Signing API requests and webhooks, so the receiver can verify a message is genuine and unchanged without a password travelling with it.
Does the key need to be secret?
Yes. Anyone who has the key can forge valid codes, so treat it like a password and never send it with the message.
Was this tool helpful?
Thanks — your feedback helps us improve this tool.
Sorry it didn’t help — tell us what went wrong and we’ll fix it.