HMAC generation

Generate local message authentication tags with explicitly encoded keys and messages.

Generate a tag

Open HMAC, select SHA-256, SHA-384 or SHA-512 and choose key/message encodings: UTF-8, hex, canonical padded Base64 or unpadded Base64URL. Output is a full-length tag of 32, 48 or 64 bytes, displayed as hex, Base64 or Base64URL. No truncation or verification is performed.

Keys must decode to 1–4096 bytes; prefer at least 32 independently random bytes, not a password or familiar phrase. Messages accept 0–1 MiB decoded; empty messages are valid. Encoded key/message fields are bounded to 8192 and 3145728 characters respectively. Inputs are not trimmed or Unicode-normalized. The masked key field is single-line: represent multiline/binary keys as hex or Base64 rather than pasting raw text.

Read and clear the result

Changes invalidate prior output. Copy sends only the tag to the clipboard. Clear removes visible key, message and output, but does not guarantee secure erasure of browser memory. Keys and messages are not persisted or sent to a processing service. Page assets still use the network.

Example

With SHA-256, key encoding hex, key 0b repeated 20 times, message encoding UTF-8 and message Hi There, the tag is:

b0344c61d8db38535ca8afceaf0bf12b881dc200c9833da726e9376c2e32cff7

Use synthetic examples for testing, never production keys in reports.

Security meaning

HMAC uses a shared secret; any holder can generate tags. It is not encryption, a digital signature or a password hash. Generating a tag does not authenticate a received message. Key distribution, storage, rotation, message canonicalization and replay protection remain your responsibility.

On this page