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
Hashes
Note
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
Tell us what was missing.
Other tools
JSON Formatter
Format and repair JSON in the browser, flagging duplicate keys and long numbers
Regex Tester
Regex testing with a plain-language breakdown and hang protection
JWT Decoder
JWT parsing with fields explained and signature verification
CSV to JSON
A table to JSON with honest types and a reverse check
JSON to CSV
JSON to a table for Excel, with verification and formula protection
SQL Formatter
A readable query layout, verified against the source, with risky spots flagged
XML Formatter
Readable XML, errors explained with a hint, verified against the source
XML Validator
Markup, XSD schema, sitemap, YML and RSS rules, with the path to each error