Hash Generator — MD5, SHA-1, SHA-256, SHA-512
- This tool runs entirely in your browser. Nothing you enter or upload is sent to a server.
Hashes
- MD5
- —
- SHA-1
- —
- SHA-256
- —
- SHA-384
- —
- SHA-512
- —
See also
About this tool
A cryptographic hash turns any input into a fixed-length fingerprint. The same input always gives the same hash, and changing a single character changes it completely, a property called the avalanche effect. That makes hashes the standard tool for checksums, for spotting tampering and for comparing files without comparing every byte.
Hash text as you type, or drop a file to compute its checksum and compare it with the one published by the download site. All five hashes, MD5, SHA-1, SHA-256, SHA-384 and SHA-512, are shown at once with copy buttons, in lowercase or uppercase hex or in Base64. For example, The quick brown fox jumps over the lazy dog gives an MD5 of 9e107d9d… and a SHA-256 of d7a8fbb3…; add a full stop to the end and the SHA-256 becomes ef537f25…. Even an empty file has a hash (SHA-256 e3b0c442…), so a result for an empty download is a warning sign, not a match.
Turn on HMAC and enter a secret to create keyed hashes for API signatures and webhooks. With the key key, the SHA-256 HMAC of the same sentence is f7bc83f430538424b13298e6aa6fb143ef4d59a14946175997479dbc2d1a3cd8. Text is hashed as UTF-8 bytes, so a trailing newline or space changes the result, which is the usual reason for a mismatch with a command-line tool. Plain hashes are the wrong tool for storing passwords: for that, use the Password Hash Generator, which makes bcrypt and Argon2id hashes.
SHA hashes use the browser’s Web Crypto API and MD5 uses a small JavaScript implementation. Files are read locally and never uploaded, though very large files must fit in your browser’s memory.
| Algorithm | Output size | Hex length | Starts with |
|---|---|---|---|
| MD5 | 128 bits | 32 | 9e107d9d |
| SHA-1 | 160 bits | 40 | 2fd4e1c6 |
| SHA-256 | 256 bits | 64 | d7a8fbb3 |
| SHA-384 | 384 bits | 96 | ca737f10 |
| SHA-512 | 512 bits | 128 | 07e547d9 |
Frequently asked questions
Which hash should I use?
Use SHA-256 or stronger for anything security-related. MD5 and SHA-1 are fine for non-security checksums but are broken against deliberate collisions.
Can I hash passwords with this?
Plain hashes are not suitable for storing passwords, because they are fast to guess. Use the Password Hash Generator to make a slow, salted bcrypt or Argon2id hash instead.
Is the file uploaded to compute the hash?
No. The file is read into your browser’s memory and hashed there.
Why does my hash not match the one on the download page?
Check that you used the same algorithm, that the file is complete, and that text input has no hidden newline or space. A single changed byte gives a completely different hash.
Can a hash be reversed?
No. A hash is one-way. Short or common inputs can still be guessed by trying candidates, which is why passwords need salted, slow hashing.
Read the guide
- JWTs explained: what is inside a token and what decoding provesHow a JSON Web Token is built, what its claims mean, how HS256 and RS256 signatures differ, and why decoding a JWT is not the same as trusting it.
- Should password hashing be fast or slow? bcrypt, salt and pepper explainedWhy good password hashes are slow on purpose, how bcrypt stores and checks a password, what salt and pepper add, and how to stay safe if your database leaks.