How to Generate an HMAC Signature

Published September 13, 2026 · 2 min read

HMACs are used to verify both the integrity and authenticity of a message — proving it came from someone who knows the secret key and wasn't altered in transit. This computes an HMAC over text or a file using your chosen algorithm and key.

Try HMAC Generator

Steps

  1. 1

    Open the HMAC Generator tool

    Go to the HMAC generator.

  2. 2

    Enter text, or select a file

    Provide the message to sign — typed text or an exact file's bytes.

  3. 3

    Enter your secret key

    Type the shared secret key used for the signature.

  4. 4

    Choose an algorithm and encoding

    Pick SHA-256, SHA-384 or SHA-512, and hex, base64 or base64url output.

  5. 5

    Copy the signature

    Use it to sign a webhook payload, API request, or verify one you received.

Frequently asked questions

Because everything runs locally, you can generate or verify a webhook signature without pasting your secret key into an unfamiliar external service.

← Back to blog