File Hash Checker

MD5—
SHA-1—
Characters / bytes—

How File Hash Checker is calculated: MD5, SHA-1, and SHA-256 of the file's bytes (or the pasted text), computed in the browser — the file is read locally and never uploaded.

What is a file hash checker?

A file hash checker computes the MD5, SHA-1, and SHA-256 hashes of a file, so you can compare them with the hashes the publisher lists and know the download arrived intact. Pick a file and the hashes appear — the file is read in your browser and never uploaded. The default text here is "hello", which has the MD5 5d41402abc4b2a76b9719d911017c592 and the SHA-1 aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d.

Software releases list hashes next to their download links for a reason. A download can be corrupted, truncated, or replaced, and the file will still open — or fail in a confusing way. Comparing hashes takes seconds and answers the question exactly: if the hashes match, the file is the one the publisher released.

This tool hashes in two ways. Pick a file and the browser reads its bytes and hashes them with MD5 in JavaScript and SHA-1 and SHA-256 through the browser's built-in crypto. Or paste text and the same three hashes are computed from the text. Both paths run locally — nothing is ever sent to a server.

How file hashing works

A hash function takes any input and returns a fixed-size fingerprint. MD5 returns 128 bits, written as 32 hex characters; SHA-1 returns 160 bits, written as 40 hex characters; SHA-256 returns 256 bits, written as 64 hex characters. The same input always gives the same hash, and a different input gives a different hash.

The file path reads the file as bytes, not as text, which matters: a file's hash depends on its exact bytes, including line endings and invisible characters. A text file saved with Windows line endings has a different hash from the same text with Unix line endings, even though the text looks identical. Hashes are written as hex digits, and a hex text converter converts any text to and from hexadecimal.

The text path encodes the pasted text as UTF-8 and hashes those bytes, which is the same rule the hash generator on this site uses. That means the hashes here agree with the hashes there for the same text — "hello" gives the same MD5 in both tools, which is a useful cross-check.

MD5, SHA-1, and SHA-256, explained

MD5 is the oldest of the three and the fastest, but it is broken for security: two different files can be crafted with the same MD5. It is still useful for a quick integrity check, and it is the hash most publishers list for older releases. The default text "hello" has the MD5 5d41402abc4b2a76b9719d911017c592.

SHA-1 is stronger than MD5 but also broken for collisions — Google demonstrated a SHA-1 collision in 2017. It is still listed by many publishers for older files, and it is still fine for detecting accidental corruption. The SHA-1 of "hello" is aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d.

SHA-256 is the strong one. No practical collision is known, and it is the hash to trust when the stakes are high. The SHA-256 of "hello" is 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824. When a publisher lists one hash, it is usually SHA-256 — compare that one first.

MD5, SHA-1, and SHA-256 differ in length, speed, and trust, and the checker shows all three so the choice is visible. MD5 is 32 hex digits and is the fastest, but it is broken — two different files can be made with the same MD5, so it is useful only for detecting accidents. SHA-1 is 40 hex digits and is also broken for the same reason. SHA-256 is 64 hex digits, is slower, and is still trusted, which is why publishers list it next to their downloads. The checker computes all three from the same bytes, so the three values always agree with each other.

A worked example: verifying a download

Take the default text, "hello" — 5 characters. Its MD5 is 5d41402abc4b2a76b9719d911017c592 and its SHA-1 is aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d. Those are published test values: every correct MD5 and SHA-1 implementation gives them for "hello", which is how you know the tool is computing correctly.

Now the file path. Download a program, pick the file in the picker above, and the three hashes appear. Compare the SHA-256 with the one on the download page: if they match exactly, the file is the one the publisher released. If they differ by even one character, delete the file and download it again — do not run it.

Try the text path with a change: "Hello" with a capital H has a completely different MD5, 8b1a9953c4611296a827abf8c47804d7. Case matters, whitespace matters, and line endings matter — the hash covers the exact bytes, which is why it catches corruption that the eye cannot see.

Who uses a file hash checker, and why

Anyone downloading software is the main user. An operating system image, a game installer, or a firmware update is a large file, and a corrupted download can brick a device. Comparing the hash before installing is the cheapest insurance there is.

Developers and system administrators are the second group. A release pipeline hashes every build, a backup system hashes every file, and a deployment checks the hash before rolling out. A mismatch means the build or the backup is not what it claims to be, and the rollout stops.

Security teams are a third group. A hash identifies a file exactly, which is how malware is recognised and how evidence is preserved. A hash generator gives the same three hashes for pasted text, and an ASCII converter shows the byte values the hashes are computed from.

Release engineers are a third group. A release is a set of files, and each file ships with a published hash so the downloader can verify it. The checker is the tool for that verification, on both sides: the release engineer hashes the file before publishing and writes the hash next to the download link, and the downloader hashes the file after downloading and compares the two. A mismatch means the download was corrupted or replaced, and the file must not be used.

File hash vs text hash

A file hash covers bytes; a text hash covers characters. The difference matters for line endings: a text file with CRLF line endings and the same text with LF line endings are different files with different hashes, even though the text is the same. The file picker hashes the bytes as they are, which is the correct check for a download.

The text path is for short checks: verifying a test vector, checking a string against a published hash, or comparing two pastes. The hash generator on this site does the same job for text, with the same three algorithms, so the two tools agree on every input.

Both paths are local. The file is read with the browser's FileReader and hashed in the page — it is never uploaded, and the page works offline once loaded. A tool that uploads your file to hash it is a tool that does not need to exist.

A file hash is not a text hash, and the distinction matters when the input is a file. A text hash is computed from the characters you typed, which the browser encodes as UTF-8 before hashing. A file hash is computed from the file's exact bytes, which may include line endings, a byte-order mark, or binary data that has no text form at all. The two hashes of the same words can differ, because the bytes differ — a text file saved with Windows line endings has a different hash from the same text with Unix line endings.

Common file hash mistakes

The first mistake is comparing the wrong hash. A publisher may list MD5, SHA-1, and SHA-256 side by side, and comparing your MD5 with their SHA-256 will never match. Check the label and the length: 32 hex characters is MD5, 40 is SHA-1, 64 is SHA-256.

Second: trusting a hash from the same place as the file. If a download page is compromised, the attacker can change the listed hash too. Get the hash from a second source — the project's release notes, a signed announcement, or a package manager — when the stakes are high.

Third: using MD5 for security. MD5 collisions can be crafted, so a matching MD5 does not prove a file is genuine. Use SHA-256 for anything that matters, and treat MD5 as a quick check for accidental corruption only.

Fourth: hashing the wrong file. A download can save with a different name, or an old copy can sit in the downloads folder next to the new one. Check the file name and size — shown under the picker — before comparing hashes.

A second mistake is comparing hashes with different cases and concluding they differ. A hash written in upper-case hex and the same hash written in lower-case hex are the same value, but a plain string comparison will say they are different. The fix is to lower-case both values before comparing, or to use a comparison that ignores case. The checker writes its hashes in lower case, which is the common convention, and a published hash in upper case should be lowered before the two are compared.

How to use this file hash checker

Pick a file with the file picker, or paste text into the box — the default text is "hello", 5 characters. The MD5, SHA-1, and SHA-256 appear in the box below, with the MD5 and SHA-1 also shown as results above it. For a file, the character count shows the file size in bytes.

Compare the hashes with the ones the publisher lists. A match means the file is intact; a mismatch means it changed, and it should be downloaded again. To copy the hashes, use the Copy button next to the output box.

Everything runs in your browser. No sign-up, no account, no data sent anywhere — your file is read locally and never uploaded. It works offline once the page has loaded, which is the whole point: a hash tool that uploads your file would defeat its own purpose.

Paste the text or pick a file, and the three hashes appear underneath with a copy button next to each. The text path is for short checks, such as verifying a test vector or checking a string against a published hash. The file path is for real files: pick the file and the browser reads it as bytes, so the hash depends on the exact bytes, including line endings. Compare the SHA-256 value with the one the publisher listed, and if they match, the file is the one the publisher shipped.

Frequently Asked Questions

5d41402abc4b2a76b9719d911017c592. The SHA-1 of hello is aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d, and the SHA-256 is 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824. These are published test values that every correct implementation gives.

No. The file is read with the browser's FileReader and hashed in the page — it never leaves your device. MD5 runs in JavaScript and SHA-1 and SHA-256 use the browser's built-in crypto. The page works offline once loaded.

SHA-256 when the publisher lists it: it is the strong one, with no practical collision known. MD5 and SHA-1 are fine for detecting accidental corruption but are broken for security, so never rely on them alone when tampering is a possibility.

Check three things: that you compared the same algorithm (32 hex characters is MD5, 40 is SHA-1, 64 is SHA-256), that you hashed the right file, and that the file downloaded completely. A truncated download has a different hash, as does a text file with different line endings.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.