HMAC Generator

Sign a message with a secret key using HMAC-SHA256.

Runs in your browser Developer Tools Free · No account

Input

Processed locally

This tool runs entirely in your browser. The data you paste or load is never uploaded.

Result

Enter your input, then run the tool.

About this tool

Computes an HMAC signature of a message with a secret key using SHA-1, SHA-256, SHA-384 or SHA-512 through the browser’s Web Crypto API. Useful for checking webhook signatures and API request signing without sending the secret anywhere.

How to use it

  1. Enter the message exactly as it was signed.
  2. Enter the secret key and choose the hash algorithm.
  3. Press Sign and compare the signature with the one you received.

Frequently asked questions

Why does my signature not match the webhook header?
The message must be byte-for-byte identical, including whitespace and line endings. Many providers also prefix the header with “sha256=” or use Base64 instead of hex.
Is my secret key sent anywhere?
No. The key is imported into the Web Crypto API in this tab and never leaves your browser.

Keep going

More in this category