387+ free calculators — no sign-up, no ads, no paywalls. Browse all tools →
Start typing to search...
HMAC signature creator

HMAC Generator

Generate HMAC signatures online using a message and secret key. Create SHA-1, SHA-256, SHA-384, and SHA-512 HMAC hashes in hex or base64 format.

Secret Key Signing Hex and Base64 Copy Output

Create secure message signatures

Useful for API authentication, webhook verification, signed requests, backend testing, and security learning.

Free HMAC Generator Tool

Enter your message, add a secret key, choose an algorithm, and generate a clean HMAC signature instantly.

HMAC Input

Enter the text, JSON, API payload, webhook body, or string you want to sign.
The secret key is used to create the HMAC signature.
Do not paste real production secrets on public or shared computers.

Generated HMAC

HMAC Signature
SHA-256
0 Message Characters
0 Secret Length
SHA-256 Algorithm
0 Signature Length

HMAC Output Details

Field Value Meaning
Generate HMAC to see output details.

Quick HMAC Examples

HMAC generation uses browser Web Crypto where supported. On live hosting, HTTPS is recommended for crypto features.

Why Use an HMAC Generator?

An HMAC Generator helps create message signatures for APIs, webhooks, authentication, and secure request validation.

Create HMAC Signatures

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

Hex and Base64 Output

Convert the HMAC result into hex, base64, or both formats for API headers and verification.

API Testing Ready

Use the generated signature for signed requests, webhook checks, and development testing workflows.

What Is HMAC?

HMAC stands for Hash-based Message Authentication Code. It combines a secret key with a message and a hash algorithm to create a signature. The receiver can use the same secret key to confirm that the message was not changed.

HMAC is commonly used in API authentication, webhook signature verification, signed URLs, request validation, payment callbacks, and backend-to-backend communication.

Algorithm Common Use Output Strength
HMAC SHA-1 Legacy systems Older, less recommended
HMAC SHA-256 Modern API signing Strong and widely used
HMAC SHA-384 Higher security needs Stronger output length
HMAC SHA-512 Large security-sensitive systems Longest output

How It Works

Generate an HMAC signature in three simple steps.

Enter Message

Paste the text, JSON payload, webhook body, API path, or request string that needs a signature.

Add Secret Key

Enter the shared secret key and select the HMAC algorithm and output format.

Copy Signature

Generate the HMAC signature, copy it, download the report, or copy an example signature header.

HMAC Generator FAQs

Common questions about HMAC signatures, secret keys, algorithms, APIs, and security.

An HMAC Generator creates a keyed hash signature from a message and secret key using algorithms like SHA-256 or SHA-512.
HMAC SHA-256 is a common modern choice for API signing and webhook verification. SHA-512 can be used when longer output is required.
No. HMAC does not hide the message. It creates a signature to verify message integrity and authenticity.
No. The secret key must stay private between trusted systems. Anyone with the secret can generate valid signatures.
No. It works with normal PHP and JavaScript. No API, database, cURL, or Composer package is required.