File Hash Generator
Compute MD5, SHA-1, SHA-256, and SHA-512 checksums for any file. Drag and drop a file to instantly calculate all four hashes in your browser.
Drop a file here, or click to browse
Any file type — processed entirely in your browser
When a file hash generator is the right tool
Use this page to compute MD5, SHA-1, SHA-256, and SHA-512 of a file you already have, and to copy those lowercase hex digests, without uploading the file. Drop a file or click the dashed area to browse. For hashing a string rather than a file, use Hash Generator.
Use cases
Checking a downloaded installer against a published checksum
Drop the file, wait for the four rows, and compare the SHA-256 (or whichever the vendor published) by eye or after Copy. This page will not tick a “match” box for you — it only prints the digests.
Getting an MD5 as well as the SHA family
Some older manifests still list MD5. That digest is produced in JavaScript on this page. The SHA algorithms come from Web Crypto. All four always run together; you cannot disable one of them.
Working only on this device
The drop zone promises that any file type is processed in the browser. That is accurate: the bytes stay local. Treat sensitive documents with the same care you would on any local tool that loads the whole file into the tab.
How hashing works
The selected file is read as an ArrayBuffer. MD5 is computed by the local implementation; the other three call crypto.subtle.digest. Each digest is formatted as lowercase hexadecimal. A new file clears the previous table and starts again. Same-file reselection in the hidden file input may not fire another change event — drop the file again if you need to recompute.
Drop or choose a file. The page reads it locally and lists:
MD5 <32 lowercase hex chars>
SHA-1 <40 lowercase hex chars>
SHA-256 <64 lowercase hex chars>
SHA-512 <128 lowercase hex chars>
The file name, a 1024-based size (for example 1.00 KB), and the browser’s
MIME type (or “unknown”) appear above the table. Nothing is uploaded.Known test strings, if you save them as a file first, match standard test vectors (for example, a file whose only contents are hello has MD5 5d41402abc4b2a76b9719d911017c592).
What this tool does not do
It does not hash typed text, several files at once, or an HMAC with a key. It does not compare a digest you paste, and it does not stream huge files. Nothing is uploaded. For a keyed message authentication code, use HMAC Generator.
How to use File Hash Generator
- Drop a file on the dashed area, or click it and choose a file.
- Wait until Computing hashes… disappears and the four digest rows appear.
- Copy any row you need, or drop another file to replace the results.
Frequently asked questions
Which hashes are computed, and where?
All four are computed for every file: MD5, SHA-1, SHA-256, and SHA-512, shown as lowercase hex. SHA-1, SHA-256, and SHA-512 use the Web Crypto API. MD5 is implemented in JavaScript on this page because SubtleCrypto does not offer MD5. The file is read with File.arrayBuffer() in your browser and is not uploaded.
Can I hash text, multiple files, or compare against an expected checksum?
No. This page accepts a single file, by click or drag-and-drop. Choosing another file replaces the previous results. There is no text box, no folder mode, and no field to paste an expected hash for a match/mismatch. For a string instead of a file, use the Hash Generator.
How is the file size shown?
The name, size, and MIME type appear once the file is selected. Size uses 1024-byte units with two decimal places (B, KB, MB, GB). A 1024-byte file is “1.00 KB”. The type is file.type from the browser, or “unknown” if that string is empty.
Are large files a problem?
The entire file is loaded into memory before hashing starts. A very large video or disk image can make the tab slow or run the browser out of memory. There is no streaming or size cap in the tool itself. “Computing hashes…” is shown until all four digests finish or the read fails.
Is my file sent to a server?
No. Hashing runs locally after the browser reads the file. Closing the tab discards the bytes and the digests. Do not drop a file you would not be comfortable having in memory on this device.
Related tools and guides
References
- SubtleCrypto.digest provides SHA-1, SHA-256, and SHA-512. MD5 is computed by a local implementation because it is not available there.
- MD5 and SHA-1 are still used as checksums, but they are not suitable for collision-resistant security. Prefer SHA-256 or SHA-512 when the digest is a security control.