SHA Hash Generator

Computes SHA-1, SHA-256 and SHA-512 hashes of text and files, checks them against the developer's checksum, and supports HMAC with a key.

0 characters · 0 bytes

A hash is a short fingerprint of your data: the same input always produces the same output, and changing a single byte changes the whole thing. People use hashes to confirm that a file downloaded without corruption and that a text was not altered along the way.

The tool computes five hashes at once, SHA-1, SHA-256, SHA-384, SHA-512, and MD5, for either text or a file.

Checking against a checksum

Paste the string published next to the distribution into the "Compare with hash" field. You do not need to pick an algorithm: the tool figures out which one produced the string and tells you whether it matches. Spaces, line breaks, and letter case do not get in the way; Base64 notation and the sha256-… form are understood too.

If the hash does not match, the usual suspects are: the wrong file was downloaded, the download did not finish, or the hash was copied from a different version.

Encoding changes the hash

The string "Привет" in UTF-8 and in Windows-1251 consists of different bytes, so the hashes differ. When your result disagrees with a database on an old server or with an export from 1C, the cause is most often this: switch the encoding and compare again.

HMAC and the integrity attribute

Filling in the key switches the calculation to HMAC mode, which is how requests to payment gateways are signed and webhooks are verified. MD5 is not computed in this mode.

The output format switches between hex in upper and lower case, Base64, and the sha384-… string for the integrity attribute of a <script> tag.

Rate this tool

Help us get better

Other tools