HomeDeveloper toolsHMAC Generator

HMAC Generator

Generate SHA-256, SHA-384, or SHA-512 message authentication codes locally.

Processing stays in your browser. Use test keys when debugging shared examples. No key or message is saved by this tool.

How to use the hmac generator

Enter a message, secret key, key encoding, and SHA algorithm to generate an HMAC. Messages use UTF-8; keys can use UTF-8 text or hexadecimal bytes. Results are available as hexadecimal and Base64.

Example

Use a test key and a sample request body to compare this result with your application's HMAC-SHA-256 output. Every space and newline in the message matters.

Good to know

HMAC authenticates bytes using a shared secret; it does not encrypt the message. Use the exact encoding and canonicalization required by your API. Processing stays local and requires HTTPS or localhost.

Separate representation, integrity and trust

Use public test values for the first run and identify exactly what property you want to inspect. Encoding makes data representable in another format; hashing produces a digest; signing and encryption have different purposes. A readable token, matching digest or parsed key does not by itself establish who created the data or whether it should be trusted. The scope stated on this page is the boundary of the result.

How to review the result

Compare the exact bytes and encoding used by the other system. Spaces, line endings, Unicode encoding and Base64 variants can all affect the result. For cryptographic material, confirm algorithms and parameters against the protocol you are implementing. Do not put real credentials in a bug report or screenshot. Review any external-service disclosure before starting a lookup; a service-assisted check has different data handling from a local transformation.

  • Confirm the expected encoding, algorithm and byte sequence with a public known example.
  • Get comparison values and trust anchors from an independent source you trust.
  • Keep generated secrets out of shared downloads, source control and support messages.

Common questions about this workflow

Does decoding or inspecting a token verify it?

No. Reading fields and checking syntax are separate from verifying a signature, issuer, audience, expiry and the surrounding application's policy. Use the verification procedure required by the actual protocol.

Does no reported issue prove that a value is safe?

No. The result covers the checks described on this page and the supplied input only. A local utility cannot establish every security property, and a lookup may have incomplete coverage. Apply your application's complete validation and key-management requirements.

Built by DevBricks Technologies. Found an unexpected result in HMAC Generator? Report a reproducible example with the tool URL, settings and a small sample that contains no private information.