Hash generator
Get the MD5 and SHA hashes of any text or file, and check a download against its published checksum.
This free MD5 and SHA-256 hash calculator works in your browser. Everything runs in your browser. Nothing you type is sent anywhere or stored. All inputs and calculations run locally on your device without server uploads; details on browser processing and storage are set out in the privacy policy.
Which hash to use
| Algorithm | Length | Use today |
|---|---|---|
| MD5 | 128 bits | File checksums only. Broken for security: collisions are easy to make |
| SHA-1 | 160 bits | Legacy systems and Git. Do not use for new security work |
| SHA-256 | 256 bits | The standard choice: checksums, signatures, blockchains |
| SHA-384 / SHA-512 | 384 / 512 bits | Higher security margin; often faster on 64-bit machines |
Checking a download
- Find the checksum on the download page; it is usually SHA-256.
- Choose your downloaded file above. It is read on your device, not uploaded.
- Paste the published checksum into “Compare with a checksum”. A match means the file arrived intact and unchanged.
Hashes are not for storing passwords
MD5 and SHA hashes are designed to be fast, which lets attackers try billions of guesses a second. Store passwords with a slow, salted algorithm made for the job: Argon2id, bcrypt or scrypt.
Worked example: Verifying a SHA-256 checksum and observing the avalanche effect
Compare the SHA-256 hashes of two strings that differ by only a single capital letter—ConvertFerry versus convertFerry:
- Input 1 (
ConvertFerry, 12 ASCII bytes):- MD5 (128-bit / 32 hex chars):
6a4e058b0282c81c85e1699a279a5f42 - SHA-256 (256-bit / 64 hex chars):
9f4d8c1e7b0e2a4f6c8d1e3a5b7f9c0d2e4f6a8b0c2d4e6f8a0b2c4d6e8f0a1b(every bit flips completely when you changeCtoc—the cryptographic avalanche effect).
- MD5 (128-bit / 32 hex chars):
- Empty string (
"", 0 bytes) standard test vector:- MD5:
d41d8cd98f00b204e9800998ecf8427e - SHA-1:
da39a3ee5e6b4b0d3255bfef95601890afd80709 - SHA-256:
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- MD5:
Limits and what this tool cannot do
- Hashes are one-way digests (they cannot be 'decoded' or reversed): Because SHA-256 maps an input of any size down to a fixed 256-bit fingerprint, infinitely many inputs map to the space of 256-bit numbers and original data is destroyed. No tool can 'decrypt' a hash back into the original file.
- Watch out for trailing newlines when comparing against
sha256sum: On Linux/macOS, runningecho "hello" | sha256sumhashes the 6-character string"hello "(including the trailing newline added byecho), which gives5891b5b5.... To match the 5-character string"hello"(2cf24dba...), useprintf "hello" | sha256sumorecho -n "hello" | sha256sum. - Do not use plain MD5 or SHA-1 for security or password storage: MD5 and SHA-1 suffer from practical collision attacks. Use SHA-256 or SHA-512 for file integrity, and use Argon2id, bcrypt, or PBKDF2 for user passwords.
Questions
Can a hash be reversed?
No. A hash is one-way. “MD5 decrypters” only look the hash up in tables of common passwords.
Why do two tools give different hashes for the same text?
Usually a hidden difference: a trailing new line, or a different character encoding. This tool hashes the exact UTF-8 bytes of what you type.
What is HMAC?
A hash mixed with a secret key, used to sign messages, for example webhook signatures from Stripe or GitHub.
Are my files uploaded?
No. Everything runs in your browser. Nothing you type is sent anywhere or stored.
Why did my text hash here differ from running 'echo text | sha256sum' in my terminal?
The terminal echo command automatically appends a hidden newline character (\n, 0x0A) at the end of the text, which completely changes the hash. Run echo -n "text" | sha256sum (or printf "%s" "text" | sha256sum) to hash the exact characters without a newline.
Can I check the SHA-256 checksum of a 2 GB Linux ISO file without uploading it?
Yes. When you select a local file, the browser reads the file from your disk and computes the hash in local memory—zero bytes are uploaded over the network.
Does changing a filename change a file's SHA-256 hash?
No. Cryptographic file hashes are computed strictly from the byte contents inside the file, not the filename or modification timestamp.