b2KIT

Batch File Hash Calculator

Calculate MD5, SHA-1, SHA-256, SHA-512 hashes for multiple files at once with verification.

Tested tool guide Tested browser tools Checked August 16, 2026

What Batch File Hash Calculator does, with a checked example

Select any number of files and this tool computes MD5, SHA-1, SHA-256, and SHA-512 digests for all of them at once, displaying each result in a table you can copy. Paste an expected checksum into the verification field and the tool reports match or mismatch per file. It reads the selected files entirely in the browser; nothing is uploaded. The surprise most users hit: a hash is taken over exact bytes, so a text file saved on Windows (CRLF line endings) hashes differently from the same-looking file saved on macOS (LF), and an editor's added trailing newline changes every digest.

Worked example

A concrete input and expected output from the current implementation.

Input

A file whose exact contents are the three bytes `abc` with no trailing newline, created with `printf 'abc' > test.txt`.

Expected output

MD5: 900150983cd24fb0d6963f7d28e17f72 / SHA-1: a9993e364706816aba3e25717850c26c9cd0d89d / SHA-256: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad

These are the official test vectors for the three bytes `abc`, published in RFC 1321, RFC 3174, and FIPS 180-4 respectively, so matching values confirm each algorithm is computed correctly. Add a single newline byte to the file and every digest changes.

How the result is produced

1

Digest computation

Each selected file is hashed in full, byte for byte, under every chosen algorithm, so one pass yields all four digests at once. Digest length is fixed regardless of file size: 128 bits for MD5, 160 for SHA-1, 256 for SHA-256, 512 for SHA-512, printed as lowercase hexadecimal. Processing happens locally in the browser, and file contents are never uploaded.

2

Verification

Type or paste the expected checksum into the verification field, select the algorithm it belongs to, and the tool compares it against the computed digest, flagging match or mismatch. A match proves the bytes you hashed equal the bytes the checksum was made from. A mismatch never proves tampering by itself: the file, the checksum, or both may come from different versions.

Good uses

  • Verify a downloaded installer or archive against the SHA-256 value printed on the download page before running or extracting it.
  • Compare the digest of a folder of files before and after copying them to a new drive or backup medium, to prove every byte arrived intact.
  • Check whether two files with different names or locations are byte-identical, for deduplicating storage or confirming that a renamed file really is the same content.

Limits and checks

  • Text files are the trap: line endings (CRLF on Windows, LF on macOS and Linux), a trailing newline, and encoding (UTF-8 vs UTF-16, with or without a BOM) all change the hash. Two files that look identical in an editor can produce completely different digests.
  • A mismatch means the bytes differ from what the checksum was computed over, and nothing more. The download may be truncated, the site may have republished the file without updating its checksum, or the checksum may belong to a different build or platform variant.
  • MD5 and SHA-1 are collision-broken, so they must not be relied on to prove a file is untampered; they still detect accidental corruption. And the usual false alarm: pasting a SHA-256 checksum into the SHA-1 verification field, or leaving in spaces, produces a mismatch that says nothing about the file.

Common questions

Why doesn't my file match the checksum the website publishes?

Most often because the algorithms differ (the page lists SHA-256 and you compare an MD5), the download was interrupted or corrupted, or the file is a text file whose line endings or encoding differ from the original. Verify you picked the right algorithm and checksum, redownload, and compare again. A mismatch always means different bytes, never a broken tool.

Is my file uploaded to a server when I hash it?

No. The tool runs entirely in the browser and hashes the files locally; their contents never leave your device. That is what makes it practical to checksum multi-gigabyte files without waiting on any upload. The results are only as correct as the bytes your system actually reads from disk, so hashing a file on a failing drive can itself surface errors.

References and verification

The example and behavioral notes were checked against the browser implementation. Standards and primary references below define the relevant format, formula, or platform behavior.

Related Tools