Generate MD5 and SHA hashes for text or a file
Paste text or choose a file to get its MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes as hex strings. The most common use is to verify a download: compare the SHA-256 here with the checksum the publisher lists, and if they match, the file hasn’t been changed or corrupted. Hashing runs on your device, so even large or private files are never uploaded.
Which hash to use
| Hash | Length (hex) | Use today |
|---|---|---|
| SHA-256 | 64 | Default for checksums and new work |
| SHA-512 | 128 | Extra margin, also common |
| SHA-384 | 96 | Some certificates and APIs |
| SHA-1 | 40 | Legacy only |
| MD5 | 32 | Legacy checksums only, not secure |
Tips
- Copy the publisher’s checksum and compare it character for character. Case doesn’t matter.
- A hash is not encryption. For secrets, use the password generator.
- Very large files use memory because the whole file is read in the browser.
Related tasks
Make unique IDs with the UUID generator, or encode data with the Base64 encoder.
