Category: Developer tools

HMAC Generator

System ideaMissing a tool?

Sign a message with a shared secret

Type a message and a secret key to get its HMAC in hex or Base64, for SHA-1, SHA-256, SHA-384 and SHA-512 at once. The key never leaves your browser.

HMAC-SHA1
The result will appear here.
HMAC-SHA256
The result will appear here.
HMAC-SHA384
The result will appear here.
HMAC-SHA512
The result will appear here.

The key and the message stay in this page. Nothing is uploaded, stored or logged.

Everything on this page is processed in your browser. Nothing is uploaded.

What this tool does

An HMAC is what proves a message came from someone holding the shared secret and arrived unchanged: webhook providers sign their payloads with one, API gateways expect one on every request, and a signed URL is usually an HMAC over the path and an expiry. What goes wrong is rarely the algorithm and almost always the key, because a secret printed as hex is bytes rather than the letters a to f, and reading it as text signs something entirely different. Here you say which the key is, all four digests are computed through the browser Web Crypto API, and the result is shown in hex or Base64 so it can go straight into whichever field your provider documents.

How to use it

  1. Start by deciding what your secret actually is and choose plain text, hex or Base64 accordingly — a key printed as hex is bytes, not the letters a to f, and reading it as text signs something entirely different.
  2. Enter the key and the exact message body you need to sign, byte for byte as it will be sent; one extra newline or space produces a different signature.
  3. Pick out the digest your provider documents, switch the output between hex and Base64 as needed, and copy the signature straight into that field.

Privacy

This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.

Frequently asked questions

How do I use HMAC Generator?
Three steps: choose whether your secret key is plain text, hex or Base64, enter the key and the exact message body to sign, then copy the signature for the digest your provider asks for. All four digests are computed together, so you do not have to rerun anything to switch algorithm.
Which inputs and options does HMAC Generator support?
The inputs are one message and one secret key, and you declare whether that key is plain text, hex or Base64. It computes HMAC with SHA-1, SHA-256, SHA-384 and SHA-512 at once, and shows each result in hex or Base64.
How do I view or copy the result?
All four digests appear together in the result area in hex or Base64. Find the one your provider documents and copy it straight into the header or signature field — no further conversion is needed.
Is my input, key, or result uploaded?
No. The message, the secret key, your settings and the resulting signatures stay in the browser and are not uploaded to LocalTools. Every digest is computed locally through the browser's own Web Crypto API.
What does this tool not support?
It generates signatures and nothing else: it does not call your provider, verify the signature in an incoming webhook header, or process batches, and there are no accounts, sync or cloud history. The algorithms are the four listed — SHA-1, SHA-256, SHA-384 and SHA-512; assume nothing beyond them.