HMAC-SHA512 Generator
Signing happens locally. Prefer throwaway keys for testing; rotate anything used in production.
About this tool
Compute HMAC-SHA512 signatures over any message using a secret key, locally in your browser. The 512-bit signature is 128 hex characters, shown lowercase, uppercase, or as Base64. Nothing leaves your device and the key is never written to localStorage.
How to use
- Type or paste the message into Message — the signature updates as you type.
- Enter the secret key and choose whether it is plain text (UTF-8) or hex bytes.
- Pick hex (128 characters) or Base64 (88 characters) for the signature.
- Copy the signature, or paste an expected signature to verify it.
Example
Algorithm: HMAC-SHA-512 Message: hello Key: secret (plain text) Signature: db1595ae88a62fd151ec1cba81b98c39df82daae7b4cb9820f446d5bf02f1dcfca6683d88cab3e273f5963ab8ec469a746b5b19086371239f67d1e5f99a79440
Encoding the same key as hex bytes (736563726574) produces the same signature, because both describe the identical bytes.
HMAC-SHA-512 parameters
| Property | Value |
|---|---|
| Underlying hash | SHA-512 |
| Digest size | 512 bits (64 bytes) |
| Hex length | 128 characters |
| Block size | 128 bytes |
| Web Crypto name | HMAC with hash "SHA-512" |
Why HMAC-SHA-512?
HMAC-SHA512 gives the widest signature in the SHA-2 family. Its 128-byte block and 64-bit word operations make it fast on modern 64-bit hardware, and it is the natural fit for protocols that already standardise on SHA-512 — some JWT HS512 profiles, certain payment and telecom APIs, and internal signing schemes with a long-lived secret. Choose it when a specification requires it or when you want maximum margin.
FAQ
What is HMAC-SHA512?
A keyed message authentication code based on SHA-512. It combines a message with a shared secret key to produce a 512-bit signature that can only be reproduced by someone holding that key.
Is HMAC-SHA512 better than HMAC-SHA256?
It has a longer output and more security margin, but no practical advantage for typical authentication. HMAC-SHA512 is often faster on 64-bit CPUs, while HMAC-SHA256 is shorter and far more widely required.
How long is an HMAC-SHA512 signature?
512 bits — 64 bytes, written as 128 hexadecimal characters or 88 Base64 characters with padding.
What is HMAC-SHA512 used for?
JWT HS512 tokens, request signing in APIs that specify SHA-512, license and token validation, and webhook verification where the provider publishes SHA-512 signatures.
Why is the HMAC-SHA512 block size 128 bytes?
SHA-512 processes input in 1024-bit (128-byte) blocks, so its HMAC pads the key to that length. SHA-256 and SHA-1 use 64-byte blocks instead.
Why does my signature not match?
Encoding, in nearly every case: the key as UTF-8 versus hex bytes, a trailing newline in the message, or Base64 output compared against a hex expectation.
Is my key stored anywhere?
No. The signature is computed locally and the key is deliberately excluded from localStorage.