File Hash Checker
Calculate AND verify MD5, SHA-1, SHA-256, SHA-512 file hashes in your browser. Paste the publisher's expected hash and get an instant Match / Mismatch result.
About File Hash Checker
This tool calculates cryptographic hash values (checksums) for files. Upload any file and get MD5, SHA-1, SHA-256, and SHA-512 hashes instantly. Use these hashes to verify file integrity and authenticity. All processing happens in your browser for complete privacy.
What is the difference between MD5, SHA-1, SHA-256, and SHA-512?
All four are cryptographic hash functions that turn any file into a fixed-length fingerprint, but they differ in output size and security. MD5 (RFC 1321, 1992) produces a 128-bit digest and is fast, but broken — collisions can be generated in seconds on a laptop. SHA-1 (FIPS 180-1) outputs 160 bits and was broken in 2017 (Google SHAttered attack), so it is deprecated for signatures. SHA-256 and SHA-512, both members of the SHA-2 family (FIPS 180-4), produce 256 and 512 bits respectively and remain cryptographically secure with no known practical collision attacks. For integrity checks where you only need to detect accidental corruption (downloads, backups), MD5 or SHA-1 are still acceptable. For security-critical work (digital signatures, password storage, TLS certificates), use SHA-256 or stronger.
When should I use a hash checker?
Hash checkers verify that a file has not been altered between two points in time or across two locations. The most common uses are (1) confirming a downloaded ISO or installer matches the publisher's posted hash before you run it, (2) checking that a backup file is bit-identical to the original after copy or transfer, (3) detecting silent data corruption on aging drives or flaky USB sticks, (4) deduplicating large media libraries by comparing fingerprints, and (5) catching tampering in forensic evidence chains. A matching hash gives you very high confidence the file is intact; a mismatching hash proves something changed, even if you cannot tell what or how.
Why do two different files sometimes produce the same hash?
This is called a collision, and it is mathematically inevitable: a hash function maps an infinite input space (any file) to a finite output space (e.g., 2^256 SHA-256 values), so by the pigeonhole principle collisions exist. The question is whether they can be found in practice. Secure modern hashes like SHA-256 have a search cost of roughly 2^128 operations to find a collision via the birthday bound — well beyond any computer that will ever exist. MD5 collisions, by contrast, can be crafted in minutes; attackers have published colliding PDFs and TLS certificates. If you ever see two different files with the same SHA-256 hash, you have found something publishable. If you see it with MD5, you found a known weakness, not an accident.
How does hashing actually work internally?
A cryptographic hash reads the file in fixed-size blocks (e.g., 512 bits for SHA-256) and feeds each block into a compression function that scrambles the running internal state with bitwise XORs, additions, and rotations. SHA-256 uses 64 rounds per block with 32-bit words and eight 256-bit working variables seeded from the fractional parts of the cube roots of small primes. After the last block (including length padding), the final internal state is the digest. Two design properties matter: (1) avalanche — flipping a single input bit changes about half the output bits, and (2) one-wayness — given the digest, no shortcut is known to recover the input faster than brute force. This is why even a one-byte file edit produces a totally different hash.

What are magic numbers and file signatures, and do hashes use them?
Magic numbers are short byte sequences at the start of a file that identify its format — for example, PNG begins with 89 50 4E 47, PDF with 25 50 44 46, and ZIP with 50 4B 03 04. These are used by file-type detectors, not by hash functions. A hash treats the entire file as an opaque byte stream and does not care whether it is a PNG, an EXE, or random noise — every byte is mixed into the digest equally. This means renaming file.txt to file.exe does not change its hash, but adding a single byte anywhere completely changes it. If you want type identification, use a magic-byte detector; if you want integrity verification, use a hash.
Are hash collisions a real threat for everyday users?
For accidental collisions on modern hashes, no — the odds of two unrelated files randomly sharing a SHA-256 are about 1 in 2^256, far smaller than any practical risk. For intentional attacks, the answer depends on the algorithm. MD5 is unsafe: attackers have demonstrated colliding malware that shares the hash of a benign file, defeating signature-based antivirus. SHA-1 was used until 2017 in Git, TLS, and Subversion; it is now deprecated but still appears in legacy systems. Everyday users downloading software from a reputable site that publishes SHA-256 hashes are safe. Users relying on MD5 or SHA-1 for any security decision (auth, signing, malware detection) should upgrade. For checksums of family photo backups, MD5 is still fine.
How do SHA-3 and BLAKE3 compare to SHA-2?
SHA-3 (FIPS 202, 2015) is a completely different design from SHA-2, built on the Keccak sponge construction rather than the Merkle–Damgård chain. It was standardized as a backup in case SHA-2 was ever broken — which has not happened — so SHA-3 sees limited deployment despite being mathematically elegant. BLAKE3 (2020) is a high-performance hash based on the ChaCha cipher and a Merkle tree: it can be parallelized across CPU cores and SIMD lanes, reaching speeds of several GB/s on modern hardware, roughly 10x faster than SHA-256 for large files. BLAKE3 is excellent for content-addressed storage, deduplication, and large backup verification. For interoperability with existing tools and standards, SHA-256 remains the default choice; for raw speed on trusted internal systems, BLAKE3 is hard to beat.
Does this tool send my file to your servers?
No. All hashing happens locally in your browser using the Web Crypto API (SubtleCrypto.digest), which exposes hardware-accelerated SHA-256, SHA-384, and SHA-512 on every modern browser. Your file never leaves your device — there is no upload, no temporary copy on our servers, and no logs of file names or hashes. This is important for sensitive material: source code, contracts, medical records, private photos. You can verify this yourself by opening the browser's network panel before hashing — you will see zero outbound traffic during the operation. MD5 and SHA-1 are computed via pure-JavaScript implementations because Web Crypto deliberately omits them as insecure; they are slower but still fully client-side.
