Home All Tools Dev Tools Popular Rated Browse 100+ Tools →
HMAC Generator — SHA-256
⚙️ Algorithm & Encoding
Hash Algorithm
Output Encoding
🔑 Secret Key
Key
Key Encoding
📋 Message
Input Message 0 bytes
Message Encoding
✅ HMAC Output
Generated HMAC Signature
HMAC signature will appear here...
🔍 Verify Signature
💡 Paste an existing HMAC below and click Verify to compare it against the generated signature above.
Expected HMAC
📜 Recent
No results yet.
Generate a signature above.

// Features Why Use I7 Pixel's Free HMAC Generator?

Whether you're signing API requests, verifying webhook payloads, or learning how message authentication works, this tool gives you a fast, accurate HMAC without installing any library.

🔐
4 Hash Algorithms
Generate HMACs using SHA-256, SHA-512, SHA-384, or SHA-1 — computed with the browser's native Web Crypto API for spec-accurate results.
🔑
Flexible Key Encoding
Enter your secret key as UTF-8 text, Hex, or Base64 — matching whatever format your API, SDK, or backend already expects.
📋
Flexible Message Encoding
Sign UTF-8 text, raw hex bytes, or Base64-encoded payloads — ideal for testing webhook bodies or binary data without extra conversion steps.
⚙️
Hex, Base64 & Base64url Output
Pick the output encoding your integration requires — Hex for most APIs, Base64 or Base64url for signed URLs and JWT-style tokens.
💪
Live Key Strength Meter
A real-time strength indicator flags weak or short secret keys as you type, helping you avoid signatures that are easy to brute-force.
🔍
Built-In Verification
Paste an expected HMAC and compare it against your generated signature using a constant-time check that avoids leaking timing information.
📜
Result History
Your last 10 generated signatures stay listed for quick recall, complete with algorithm and encoding, so you can compare variations fast.
🔒
100% Private — No Upload
Every computation runs locally via SubtleCrypto in your browser. Your secret key and message never leave your device.
🆓
Free Forever, No Signup
No account, no watermark, no install. Open the page, generate your HMAC, and download the result in seconds — completely free every time.

// Guide How to Generate an HMAC Signature — Step by Step

From secret key to verified signature in four straightforward steps.

1
Choose Algorithm & Encoding
Select a hash algorithm — SHA-256, SHA-512, SHA-384, or SHA-1 — and pick the output encoding: Hex, Base64, or Base64url.
2
Enter Secret Key
Type or paste your secret key, choose its encoding (UTF-8, Hex, or Base64), and check the live strength meter below it.
3
Enter Message
Paste the message or payload you need to sign, matching its encoding (UTF-8, Hex, or Base64) to the source data.
4
Generate & Verify
Click Generate HMAC to compute the signature instantly. Copy it, download it as .txt, or paste an expected value into Verify Signature to confirm a match.

// Deep Dive HMAC Explained — Algorithms, Encoding & Best Practices

Understanding how HMAC works helps you pick the right algorithm and avoid common signing mistakes.

🔐

What Is HMAC and Why Use It?

HMAC (Hash-based Message Authentication Code) combines a cryptographic hash function with a secret key to verify both the integrity and authenticity of a message. Unlike a plain hash, an HMAC can only be reproduced by someone who holds the secret key — making it the standard choice for signing API requests, verifying webhook payloads, and protecting tokens like JWTs from tampering.

⚙️

Which Algorithm Should You Use?

SHA-256 is the most widely used and recommended default — it's fast, well-supported, and considered secure for virtually all applications, including AWS Signature V4 and most webhook providers. SHA-512 and SHA-384 offer a larger output and are used where longer keys or higher theoretical security margins are required. SHA-1 is included for compatibility with legacy systems only — avoid it for new integrations since SHA-1 the underlying hash function is considered cryptographically weak (note this weakness applies to plain SHA-1 hashing; HMAC-SHA1 itself remains structurally sound but is being phased out in most modern specs).

📋

Encoding: Hex vs Base64 vs Base64url

Hex is the most common HMAC output format and is used by most REST APIs and documentation examples. Base64 is more compact and is often required by cloud provider SDKs (e.g. AWS, Azure). Base64url replaces the +, /, and padding characters with URL-safe equivalents, making it the correct choice for signed URLs and JWT signatures, which must not contain characters that need URL-encoding.

// Reference HMAC Algorithm & Encoding Reference

Quick guide to which algorithm and encoding fit each use case.

OptionOutputWhere it's Used
HMAC-SHA256 Recommended 64 hex chars / 256 bits Default for most APIs, AWS Signature V4, GitHub & Stripe webhooks
HMAC-SHA512 128 hex chars / 512 bits Higher-margin signing, some enterprise and government systems
HMAC-SHA384 96 hex chars / 384 bits TLS cipher suites, some enterprise authentication protocols
HMAC-SHA1 Legacy 40 hex chars / 160 bits Older OAuth 1.0a and legacy webhook integrations only
Hex Lowercase 0–9, a–f Most REST API documentation and signature headers
Base64 Standard Base64 alphabet Cloud SDKs (AWS, Azure), compact header values
Base64url URL-Safe URL-safe Base64 alphabet Signed URLs, JWT signatures, query-string tokens

// Use Cases Who Needs an HMAC Generator?

Signing and verifying messages is a routine part of building secure systems — this tool covers the most common scenarios instantly.

🧑‍💻
Backend Developers
Quickly test and debug API request signing logic — compare a locally generated HMAC against what your server produces to catch encoding mismatches.
🔗
Webhook Integrators
Verify that incoming webhook payloads (Stripe, GitHub, Shopify, etc.) match the signature header sent alongside the request body.
🛡️
Security Engineers
Validate that a system's HMAC implementation produces spec-correct output across algorithms and encodings during a security review or pentest.
🎓
Students & Learners
See exactly how HMAC combines a key and message under a hash function — a hands-on way to understand a core building block of applied cryptography.
🔐
API Providers
Generate reference signatures to include in your own API documentation so integrators can confirm their client library is signing requests correctly.
QA & Test Engineers
Produce known-good HMAC values for test fixtures and regression suites without writing throwaway scripts in a separate language.

// FAQ Frequently Asked Questions

Answers to the most common questions about generating HMAC signatures with this tool.

Yes — completely free. There are no limits, no accounts, no watermarks, and no charges. Generate as many HMAC signatures as you need.

SHA-256, SHA-512, SHA-384, and SHA-1 are supported via the browser's built-in SubtleCrypto API, so results match standard HMAC implementations exactly.

No — never. All HMAC computation uses the Web Crypto API locally in your browser. Your secret key and message never leave your device.

You can output the signature as Hex, Base64, or Base64url — the three formats most commonly required by APIs, webhooks, and signed URLs.

Generate a signature with the same key, message, algorithm, and encoding as the original, then paste the expected HMAC into the Verify Signature panel. The tool uses a constant-time comparison to confirm a match.

HMAC verifies both the integrity and authenticity of a message — commonly used for API request signing, webhook payload verification, and JWT signatures.

// Reviews User Ratings & Feedback

Tried the tool? Leave a quick rating and help others find it.

☆☆☆☆☆
No reviews yet
5 ★
0%
4 ★
0%
3 ★
0%
2 ★
0%
1 ★
0%
Rate this tool
You already left a review. Thank you! ✓
0/400
✓ Thanks! Your review has been saved and will appear below.
Loading reviews…

// Related More Free Tools You Might Need

All tools at I7 Pixel run in your browser — no uploads, no accounts, always free.