WebToolset Logo
WebToolset
All Categories
Categories
Developer & Data formatters
Formatters
XML FormatterJSON FormatterSQL FormatterYAML Formatter
Converters
JSON to CSVCSV to JSONCurl to Code
Minifiers & Validators
HTML MinifierCSS MinifierJS Minifier
Security, Crypto & Encoding
Generators
Hash GeneratorsBcrypt GeneratorPassword GeneratorUUID/GUID Generator
Encoder/Decoder
HTML Entity EncoderURL Encode/DecodeJWT DecoderBase64 ToolBase64URL ToolHex ToolBase32 ToolBase58 ToolBase36 ToolBase62 ToolAscii85 ToolBase91 ToolBase45 ToolUuencoding ToolHMAC GeneratorULID GeneratorEncrypt / Decrypt
QR Tools
QR Code GeneratorQR Code Reader
String & Text Manipulation
Word & Character CounterLorem Ipsum GeneratorModern Text Diff CheckerCase ConverterRemove Duplicate LinesString ReverserSlug GeneratorASCII Art GeneratorMarkdown to HTMLText Replacement ToolDetect Unicode Char
Image Tools
Image CompressorImage ResizerImage CropperPNG to JPG ConverterJPG to PNG ConverterWebP ConverterBase64 Image EncoderSVG to PNG ConverterColor PickerHEX to RGB Converter
Math, Time & Network
Unix Timestamp ConverterPercentage CalculatorAspect Ratio CalculatorUnit ConverterNumber Base ConverterIP Address LookupUser Agent ParserSubnet CalculatorStopwatch & TimerCron Job GeneratorAdvanced Calculator
© 2025 WebToolset
Home
Security, Crypto & Encoding
HMAC Generator
Logo
Security, Crypto & Encoding/HMAC Generator

HMAC Generator — Hash-based Message Authentication Code

Generate HMAC using SHA256, SHA512, MD5, and more. Securely sign messages with a secret key.

What is HMAC Generator?

HMAC (Hash-based Message Authentication Code) is a specific type of message authentication code (MAC) involving a cryptographic hash function and a secret cryptographic key. It may be used to simultaneously verify both the data integrity and the authentication of a message.

Input Formats

  • Message text
  • Secret key
  • Algorithm selection

Output Results

  • HMAC string

Key Features

Security: Verifies both integrity and authenticity
Versatile: Supports multiple hash algorithms
Privacy: 100% Client-side processing
Standard: Compliant with RFC 2104
Shareable LinksShare generated HMAC. (Limit: 1KB)

Who is this for?

API Authentication

Signing API requests to verify sender identity.

API signatureRequest signing

How to Use

1

Enter your message.

2

Enter your secret key.

3

Select the hash algorithm.

4

Copy the generated HMAC.

Examples

Input

Message: Hello, Key: Secret

Output

HMAC-SHA256: ...

Common Errors

  • Using weak keys
  • Mismatched algorithms

Code Examples

Node.js

const crypto = require('crypto');
const hmac = crypto.createHmac('sha256', 'Secret');
hmac.update('Hello');
console.log(hmac.digest('hex'));

Frequently Asked Questions

Is the key sent to the server?
No, everything is processed locally in your browser.