ToolsKit

HMAC Generator

Generate HMAC signatures with SHA-256, SHA-384 or SHA-512.

Create HMAC signatures from a message and a secret key using SHA-256, SHA-384 or SHA-512.

Loading the interactive tool… This page needs JavaScript to run the HMAC Generator.

How to use HMAC Generator

  1. Enter the value or choose the generation settings you need.
  2. Run the operation in the browser.
  3. Review the generated or transformed result.
  4. Copy or download only what you actually need.

How HMAC Generator works

Enter a secret key and a message, pick SHA-256, SHA-384, SHA-512 or SHA-1, and choose hex or Base64 output. The tool signs the message with the Web Crypto API's HMAC, which mixes the key into the hash so only someone holding the key can reproduce the value. The key and message stay in your browser and are not uploaded.

Worked example

Input key secret, message The quick brown fox jumps over the lazy dog, SHA-256, hex → Output: 54cd5b827c0ec938fa072a29b177469c843317b095591dc846767aa338bac600.

Common uses

  • Testing a webhook signature check against a known key and body.
  • Producing an HMAC value for API request signing during debugging.
  • Verifying an implementation against a published test vector.

Best for

  • webhook verification
  • API signing
  • debugging signatures

Tips for better results

  • Do not paste production secrets into any tool unnecessarily.
  • Never paste private credentials or secrets unnecessarily.
  • Use cryptographically secure generation for passwords and identifiers when the tool provides it.
  • Hashing is not encryption, and a digest should not be treated as reversible.

Frequently asked questions

What is HMAC used for?

HMAC verifies message integrity and authenticity using a shared secret.

Is my secret key uploaded?

No. Everything is computed locally with the Web Crypto API.

Is my data sent to a server?

No. This tool runs in your browser, so what you enter stays on your device.

Related tools

Explore tool categories