BcryptGenerator.org

Hash Generator & Checksum Calculator

Get the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hash of any text or file, then paste a published checksum to check that a download is genuine. Everything runs in your browser: files are never uploaded.

Hashed as UTF-8 bytes, exactly as typed (no trailing newline).

Hashes (hex)
MD5 · Legacy checksums only

Type something to see its hash

SHA-1 · Legacy, collisions are practical

Type something to see its hash

SHA-256 · Most common for downloads

Type something to see its hash

SHA-384 · SHA-2 family

Type something to see its hash

SHA-512 · SHA-2 family

Type something to see its hash

How to verify a downloaded file

  1. Find the checksum on the official download page. It's often labelled SHA-256, checksum or hash, or provided in a file such as SHA256SUMS.
  2. Open the File tab above and choose the file you downloaded.
  3. Paste the published checksum into Verify a checksum. The tool detects the algorithm from its length and tells you whether it matches.

A match means your file is byte-for-byte identical to the one the publisher hashed. Get the checksum from the publisher's own site, not from the mirror you downloaded from: anyone who can replace a file can usually replace a checksum sitting next to it.

Which hash algorithm should you use?

AlgorithmLength (hex)SecurityWhere you'll see it
MD532Broken for security (collisions since 2004)Older download pages and legacy systems
SHA-140Broken for security (practical collision in 2017)Older software and Git object IDs
SHA-25664SecureMost download checksums, code signing, TLS
SHA-38496SecureCertificates and some security standards
SHA-512128SecureSome Linux distributions and backups

To verify a download, use the algorithm the publisher lists. To choose one yourself, use SHA-256. MD5 and SHA-1 still catch accidental corruption, but they no longer stop deliberate tampering: researchers created a practical SHA-1 collision in 2017, and MD5 collisions have been practical for even longer.

Check a file's hash on Windows, macOS and Linux

Every operating system has a built-in checksum command, useful for files over 2 GB or for scripts.

Windows (PowerShell): SHA-256 is the default

Get-FileHash .\file.iso
Get-FileHash .\file.iso -Algorithm MD5

Compare against a published checksum. This prints True or False, and ignores upper/lower case:

(Get-FileHash .\file.iso).Hash -eq "paste-the-checksum-here"

Windows (Command Prompt)

certutil -hashfile file.iso SHA256

macOS

shasum -a 256 file.iso
md5 file.iso

Linux

sha256sum file.iso
sha256sum -c SHA256SUMS   # checks every file listed, prints OK or FAILED

PowerShell prints uppercase hex and most other tools print lowercase. They're the same value, so compare them ignoring case.

Why your checksum doesn't match

Hash test values

Hash the text abc above and you should get exactly these values. They come from the official test vectors, so you can also use them to check your own code:

AlgorithmHash of "abc"
MD5900150983cd24fb0d6963f7d28e17f72
SHA-1a9993e364706816aba3e25717850c26c9cd0d89d
SHA-256ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
SHA-512ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f

Checksums are not for passwords

MD5 and the SHA family are designed to be fast, which is perfect for checking large files and terrible for storing passwords: an attacker with a stolen database can test billions of guesses per second. Passwords need a slow, salted hash. Use the bcrypt generator, and read what bcrypt isto see why it's different.

Need just one algorithm, with command-line and code examples? See the SHA-256 generator and the MD5 generator.

Hash Generator FAQ

What is a checksum?+

A checksum is a short fingerprint calculated from every byte of a file, usually with a hash function such as SHA-256. Changing even one byte gives a completely different checksum, so if your result matches the one published by the developer, you have exactly the file they released.

Is my file uploaded anywhere?+

No. Your browser reads the file and calculates the hashes on your own device using the Web Crypto API (and our own MD5 code). Nothing is sent to a server, so it works for private files too, and keeps working if you go offline after the page loads.

Which algorithm should I use to verify a download?+

Whichever one the download page publishes, because you can only compare like with like. If you can choose, use SHA-256: it is secure, fast and supported by every operating system. MD5 and SHA-1 still detect accidental corruption, but they no longer protect against deliberate tampering.

Can a hash be reversed to get the original file or text?+

No. Hash functions are one-way: there is no key and no way to turn a hash back into its input. Short or common text can sometimes be found by guessing and comparing, which is why fast hashes like these must never be used to store passwords. Use bcrypt or Argon2id for that.

Is SHA-1 still safe?+

Not for security. Researchers produced two different PDF files with the same SHA-1 hash in 2017, so an attacker can create a malicious file that matches a legitimate SHA-1 checksum in some situations. It still detects accidental corruption, but prefer SHA-256 whenever the publisher offers it.

How big a file can I check?+

Up to 2 GB in the browser. The file is read into memory, so very large files depend on your device. For larger files, use the built-in command on your computer, shown above for Windows, macOS and Linux.