Hash Generator
Create MD5, SHA-1, SHA-256 and SHA-512 hashes of text or files.
Check a value’s fingerprint
A hash is a fixed length fingerprint of some data. Change one character and the hash changes completely. That property makes hashes useful for verifying downloads, comparing files and storing passwords safely.
Paste text, choose an algorithm, and the digest appears instantly. Everything happens on your device.
How to generate a hash
- Choose Text or File.
- Pick an algorithm: MD5, SHA-1, SHA-256 or SHA-512.
- Copy the hex digest.
Which algorithm to use
| Algorithm | Length | Use it for |
|---|---|---|
| MD5 | 128 bit | Legacy checksums only, never security |
| SHA-1 | 160 bit | Legacy systems, never security |
| SHA-256 | 256 bit | Signatures, certificates, integrity checks |
| SHA-512 | 512 bit | High security, some protocols |
MD5 and SHA-1 are fast to collide on purpose. Two different files can produce the same hash. If an attacker controls one of the files, a collision can make a malicious file look legitimate. Use SHA-256 unless a system forces you otherwise.
Verifying a download
Publishers often list a SHA-256 checksum next to a download. Hash the file you received and compare. If the two strings match, the file is byte for byte what they published. If they differ, the download is corrupt or has been tampered with.
Storing passwords
Do not store SHA-256 hashes of passwords. They are fast to compute, which makes them fast to attack. Password storage needs a deliberately slow algorithm such as Argon2, bcrypt or scrypt, with a unique salt per user.
To generate the password in the first place, use Password Generator. To encode a value without hiding it, Base64 Encoder is the right tool.
Frequently asked
Is hashing the same as encryption?
No. A hash is one way. You cannot turn it back into the original text. Encryption is reversible with a key.
Which hash should I use?
SHA-256 for almost everything. MD5 and SHA-1 are broken for security purposes and should only be used to match legacy systems or verify accidental corruption.
Can I hash a file?
Yes. Choose a file and the tool reads it in the browser and returns its digest.
Why do two tools give different MD5 values for the same text?
Line endings or a trailing newline are the usual cause. A hash covers exact bytes, including invisible ones.
Is my input sent anywhere?
No. Hashing uses the Web Crypto API in your browser.