HMAC Signature Generator
Create HMAC-SHA256, SHA512, SHA384 or SHA1 signatures from text or a file, check a signature you received, and get the code in four languages.
Create HMAC-SHA256, SHA512, SHA384 or SHA1 signatures from text or a file, check a signature you received, and get the code in four languages.
Used HMAC Signature Generator? Share how it went to help others.
About this tool
HMAC Signature Generator makes the keyed signature that APIs and webhooks use to prove that a message is genuine and was not changed. Choose SHA256, SHA512, SHA384 or SHA1, enter the secret key and the message, and the signature appears as you type in hex, uppercase hex, Base64 and Base64URL, each with its own copy button. The secret can be plain text, hex or Base64, because services hand out keys in different forms and using the wrong form is one of the most common reasons why signatures do not match. The message can also be text, hex or Base64, or you can choose a file up to 100 MB, which is useful for a saved webhook body. To verify a request, paste the signature you received in the check box. It may be hex, Base64 or Base64URL, and may start with a label such as sha256= or v1=. The tool tells you whether it matches, and if it does not, what to look at first. The result is the same as in your own code: with the key Jefe and the message “what do ya want for nothing?”, HMAC-SHA256 gives a value that starts with 5bdcc146 and ends with c3843, exactly as published in RFC 4231, the official test values. Below the result is ready code for Node.js, Python, PHP and the terminal that makes the same signature with your chosen algorithm and key format. An HMAC is not encryption: the message stays readable. It is also different from a plain hash, because without the secret key nobody can make a valid signature. SHA256 is the usual choice today. SHA1 is included because some older services still ask for it; do not choose it for new work. Keys, messages and files are handled in your browser with Web Crypto and are never sent.

SHA256 unless your service says otherwise.
Pick text, hex or Base64.
Type it exactly, or choose a file.
Copy the signature, or compare one you received.
SHA256, SHA512, SHA384 and SHA1.
Text, hex or Base64.
With or without a label such as sha256=.
Sign a file up to 100 MB.
Trust a message before you act on it
Check that a payment or repository event is genuine.
ExamplePaste the body, the secret and the header value.
Compare your code with a known result.
ExampleYour signature differs? Check the key format first.
See the signature part of a token.
ExampleSign the header and payload joined by a dot and take Base64URL.
Prove that a file was not changed.
ExampleSign it with a key both sides know.
Find out why a check fails.
ExampleA line break at the end of the body changes everything.
Change one letter and watch the signature change.
ExampleCompare with the RFC 4231 test values.
Why signatures do not match
Parsing JSON and writing it again changes spaces and order. Use the exact bytes you received.
A key shown as hex or Base64 may have to be decoded first.
On a server use timingSafeEqual, hmac.compare_digest or hash_equals.
Sign a timestamp with the message and refuse old ones, so a request cannot be repeated.
Senior Software Engineer · Developer of Toolyconvert
Hemant developed HMAC Signature Generator and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.
Last updated 24 November 2026
Featured on
Toolyconvert is listed on these product directories and launch platforms.