A full explanation of MD5 and the SHA family, how file integrity checking works, and which algorithm to use when.
A hash function is a mathematical operation that converts data of any length (text, a file, an image) into a fixed-length string of characters unique to that data. The same data always produces the same hash; changing even a single bit of the data changes the hash completely. This tool computes the MD5, SHA-1, SHA-256, SHA-384, and SHA-512 digests of the text you enter or the file you upload, all at once.
What is MD5?
Quick answerMD5 is an older hash algorithm that converts data into a 128-bit (32 hex character) digest. It's fast but considered cryptographically weak. Because collision attacks exist, it should not be used for security-critical work (passwords, signatures) — it's best reserved for non-critical work like fast file checksums.
How is SHA-256 calculated?
Quick answerSHA-256 splits data into 512-bit blocks and applies a 64-round compression function to each block, producing a 256-bit (64 hex character) digest. In the browser this is done at hardware speed and securely via crypto.subtle.digest('SHA-256', data); this tool calls that function for you automatically.
How do you check file integrity (checksum)?
Quick answerUpload the file you downloaded to the "File" tab, and paste the hash the publisher provided into the "Expected hash" box. The tool computes the file's actual hash and automatically compares it; a match means the file is intact and unmodified.
This check is especially useful for catching errors from a dropped connection or a corrupted download in large file transfers (software installers, disk images, archives). Publishers usually prefer SHA-256 because it's far more secure than MD5 or SHA-1.
What's the difference between MD5 and SHA?
Quick answerMD5 produces a 128-bit digest, SHA-1 a 160-bit digest, SHA-256 a 256-bit digest, SHA-384 a 384-bit digest, and SHA-512 a 512-bit digest. MD5 and SHA-1 are considered cryptographically broken (collisions can be produced); SHA-256 and SHA-512 are the standards considered secure today and are used in TLS certificates and digital signatures.
Can a hash be reversed?
Quick answerNo, hash functions are one-way; it's mathematically impossible to go from a digest back to the original data. Short or predictable inputs can, however, be found using precomputed rainbow tables — which is why passwords should always be hashed with an added salt.