HMAC Generator — Free Online Tool

Compute HMAC message authentication codes with SHA-1, SHA-256, SHA-384 or SHA-512 and a secret key, in hex or base64.. HMAC Generator is a free online tool from the ToolsRift Developer Tools collection. It runs entirely in your browser — nothing to install, no signup, and your data never leaves your device.

Loading HMAC Generator

How to use HMAC Generator

Enter your message and secret key, choose a hash algorithm and output format, and the tool computes the HMAC using the Web Crypto API for you to copy.

Frequently asked questions

What is an HMAC?

A keyed hash that proves both the integrity and authenticity of a message — only someone with the secret key can produce a matching code.

How is HMAC different from a plain hash?

A plain hash uses no key, so anyone can recompute it. HMAC mixes in a secret key so the code cannot be forged without it.

Which algorithm should I choose?

SHA-256 is a strong default; use SHA-384 or SHA-512 for extra margin. Avoid SHA-1 for new security-sensitive uses.

More Developer Tools

Color Contrast Checker
Check WCAG 2.1 contrast ratio between a foreground and background color, with AA and AAA pass/fail for text sizes.
CSS Clamp Generator
Generate a fluid CSS clamp() for responsive typography or spacing that scales linearly between two viewport widths.
Unix Timestamp
Unix — human date + live now.
Cron Parser
Explain cron and next 10 run times.
Cron Generator
Build cron from schedule dropdowns.
Timezone Dev
Major timezone clock table.

← View all Developer Tools