# HMAC Generator

> HMAC-SHA256, SHA-512, SHA-384 and SHA-1 with a secret key, plus signature checks. Runs entirely in your browser — nothing is uploaded.

Source: https://toffeekit.com/tools/hmac-generator

**Category:** [Security](https://toffeekit.com/category/security) · **Price:** Free · **Runs:** in your browser, nothing is uploaded

Open the tool: https://toffeekit.com/tools/hmac-generator

**Also useful for:** hmac, hmac sha256, webhook signature, signature, sha256, message authentication, verify signature

## What you can do

- **Check a webhook signature** — Hex HMAC-SHA256, as GitHub, Stripe and Slack send it. ([open with this preset](https://toffeekit.com/tools/hmac-generator?preset=hex))
- **Base64 signatures** — The Base64 HMAC format Shopify and Twilio use. ([open with this preset](https://toffeekit.com/tools/hmac-generator?preset=base64))

## How it works

1. Paste the Message exactly as it was sent and set its format: Text, Hex or Base64.
2. Enter the Secret key and its format.
3. Choose the Output encoding: Hex, Base64 or Base64url.
4. Copy an HMAC, or paste a signature into Compare with a signature to check it.

## FAQ

### What is an HMAC?

An HMAC is a hash-based message authentication code: a hash of a message mixed with a secret key. Anyone with the key can recompute it, so it proves the message came from someone holding the key and wasn't changed.

### How do I verify a webhook signature?

Paste the raw request body as the message, your webhook signing secret as the key, and the signature header into Compare with a signature. Prefixes like sha256= are stripped for you.

### Hex, Base64 or Base64url: which should I use?

They're three ways to write the same bytes. GitHub, Stripe and Slack use hex; Shopify and Twilio use Base64; JWTs use Base64url without padding.

### Is my secret key sent anywhere?

No. The HMAC is computed with your browser's Web Crypto API, and the key stays on this page.

### Is HMAC Generator free and private?

Yes. It's free with no sign-up or limits, and it runs entirely in your browser, so what you type or paste never leaves your device. It works on phones and computers alike.

## Privacy

HMAC Generator runs entirely in your browser. Your files and text are processed on your device and are never uploaded.

## Related tools

- [Password Generator](https://toffeekit.com/tools/password-generator) — Strong random passwords from your browser's crypto.
- [Text Redactor](https://toffeekit.com/tools/text-redactor) — Hide emails, phones, cards and more in any text.
- [Passphrase Generator](https://toffeekit.com/tools/passphrase-generator) — Memorable random-word passphrases with entropy.
- [Password Strength Checker](https://toffeekit.com/tools/password-strength-checker) — Test a password's strength and crack time privately.
- [Text Encrypt / Decrypt](https://toffeekit.com/tools/text-encryption) — Encrypt messages with a password using AES-256.
- [File Encrypt / Decrypt](https://toffeekit.com/tools/file-encryption) — Password-protect any file with AES-256 encryption.

