HMAC Generator

Sign a message with a secret key using HMAC (SHA-1, SHA-256, SHA-384, SHA-512). Useful for webhooks and API signatures.

Also called: HMAC SHA256 generator, HMAC calculator.

FreeNo sign-upRuns in your browser
DEVELOPER

HMAC Generator

Sign a message with a secret key using HMAC (SHA-1, SHA-256, SHA-384, SHA-512). Useful for webhooks and API signatures.

Runs locally in your browser
Ready. Fill in the fields above, then press Run tool.
Privacy note: this tool runs in your browser, so the text you enter stays on your device.

Find a tool

Loading tools…

Watch: how to use the HMAC Generator (14 seconds)

Recorded on a phone, steps written on screen, no sound.

About the HMAC Generator

Sign a message with a secret key using HMAC-SHA256, SHA-1, SHA-384 or SHA-512 and get the signature in hex and Base64 — useful to test webhook and API signatures.

Use test keys: your key is processed in your browser by the Web Crypto API and not sent anywhere, but live secrets are best kept off any website.

How to use the HMAC Generator

  1. Add your inputFill in secret key and message. An example is already filled in, so you can press Run tool first to see how it works.
  2. Pick the optionsalgorithm (the defaults suit most uses).
  3. Press Run toolThe result appears right under the button.
  4. Copy or download the resultCopy text results with Copy output; when the tool makes a picture or file, use its Download button.

This tool works inside your browser: what you enter stays on your device.

Good to know

What you need
You type or choose: Secret key, Message
Where it runs
In your browser, on your device.
Cost
Free, no sign-up.

Questions

Why doesn't my signature match?

Check for extra spaces or line breaks in the message; they change the result.

Which algorithm do webhooks use?

Most use HMAC-SHA256.

More tools in Developer

See all Developer tools