File Hash / Checksum Generator (SHA-1, SHA-256, SHA-384, SHA-512)
Drag in a file or pick one to get its SHA-1, SHA-256, SHA-384 and SHA-512 checksums as lowercase hex. Paste an expected hash to verify the download matches. Everything is computed in your browser with the Web Crypto API, so the file never leaves your device.
How to generate a file checksum
- Drag a file onto the drop zone, or click to pick one.
- Read the SHA-1, SHA-256, SHA-384 and SHA-512 digests and copy the one you need.
- Optional: paste the checksum the publisher listed to confirm it matches.
Examples
SHA-256 of a file whose only content is the bytes for 'abc'
a file containing the 3 bytes: abc
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
SHA-256 of an empty (zero-byte) file
a 0-byte file
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
Frequently asked questions
Is my file uploaded anywhere?
No. The checksum is computed entirely in your browser with the Web Crypto API. The file is read locally with the FileReader/ArrayBuffer APIs and its contents never leave your browser, are never sent to a server, and are not logged. You can even use the tool offline once the page has loaded.
What is a file checksum and why verify it?
A checksum is a fixed-length cryptographic fingerprint of a file's exact bytes. Publishers list a checksum next to a download so you can confirm the file you received is bit-for-bit identical to the one they released. If a download is corrupted, truncated, or tampered with, even by a single byte, the checksum will not match.
Which algorithm should I use?
SHA-256 is the common default and what most projects publish. SHA-384 and SHA-512 give a wider security margin and are also from the SHA-2 family. SHA-1 is included because some older releases still list it, but it is considered weak for security and should not be relied on for verifying authenticity.
Why is there no MD5 option?
The browser Web Crypto API does not expose MD5, and MD5 is cryptographically broken, so a matching MD5 no longer proves a file is untampered. For corruption checks prefer SHA-256; for authenticity always use SHA-256 or stronger.
How does the compare field decide match or mismatch?
Paste the checksum the publisher provided and the tool compares it, case-insensitively and ignoring surrounding spaces, against the matching algorithm it computed. A green badge means the values are identical; a red one means they differ, so the file is not the one you expected.
Can it handle large files?
The whole file is read into memory as an ArrayBuffer and then hashed, so very large files are limited by your device's available memory and may take a moment. For typical downloads, archives and installers it is effectively instant.
Why do two different files sometimes need to be re-hashed to compare?
This tool hashes one file at a time. To compare two files, hash the first, copy its digest, then hash the second and paste the copied value into the compare field. Identical files always produce identical checksums for the same algorithm.
Related tools
Hash Generator
Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes from any text. Live, lowercase hex output that runs entirely in your browser.
SRI Hash Generator
Generate a Subresource Integrity hash and a ready-to-paste script or link tag from your asset contents. Hashed in your browser, nothing is uploaded.
Base58 Encoder
Encode and decode Base58 online with the Bitcoin alphabet. Convert text to Base58 or back, UTF-8 safe, no confusing 0 O I l. Runs in your browser.
.env to JSON
Convert a .env file to JSON, or JSON back to .env. Parses KEY=value lines, comments, quotes and export. Runs entirely in your browser.
Aspect Ratio Calculator
Calculate aspect ratios fast. Enter a ratio like 16:9 and one dimension to get the other, or enter width and height to simplify the ratio.
Base64 Decode
Decode Base64 to plain text online. Paste a Base64 or base64url string and get instant UTF-8 output. Free, fast and runs in your browser.