Hash Generator
Create MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of text or files, right in your browser.
Hash Generator tool
Example
Input: abc
Result: MD5 900150983cd24fb0d6963f7d28e17f72, SHA-256 ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
These are the standard published test values for the 3-byte message "abc". SHA-1, SHA-384 and SHA-512 are computed at the same time.
Hash Algorithms Compared
| Algorithm | Output bits | Hex characters | Collision resistance |
|---|---|---|---|
| MD5 | 128 | 32 | Broken |
| SHA-1 | 160 | 40 | Broken |
| SHA-256 | 256 | 64 | No practical attack known |
| SHA-384 | 384 | 96 | No practical attack known |
| SHA-512 | 512 | 128 | No practical attack known |
Lengths measured by hashing the text abc. MD5 and SHA-1 collisions have been demonstrated publicly.
- Choose Text Input and enter or paste your text, or choose File Input and select a file.
- Click "Generate Hashes" to compute MD5, SHA-1, SHA-256, SHA-384 and SHA-512 at the same time.
- Review the results below, all computed in your browser.
- Turn on Uppercase if you need capital hex letters.
- Copy any hash with its copy button.
Hashing for Integrity: MD5, SHA-1 and SHA-2
This hash generator computes MD5, SHA-1, SHA-256, SHA-384 and SHA-512 digests of any text or file at once, right in your browser. Use SHA-256 to check that a download or file has not changed. Do not use any of these hashes on their own to store passwords.
A hash is a fixed-length fingerprint of data. Change one byte of the input and the digest changes completely. You also cannot run a hash backwards to get the input. That makes hashes ideal for integrity checks. A software site publishes the SHA-256 of an installer, you hash the file you downloaded, and you compare the two strings. If they match, you have the same file the publisher hashed.
MD5 and SHA-1 are broken for security. Researchers can create two different inputs with the same digest, which is called a collision. So neither should be used for signatures or certificates. They still work as quick checksums that catch accidental damage. SHA-256, SHA-384 and SHA-512 belong to the SHA-2 family and have no known practical collisions.
Fast hashes are the wrong tool for passwords, because an attacker can test billions of guesses per second. Password storage needs a slow, salted method such as bcrypt, which you can try in the Bcrypt Hash Generator. If you need to prove who sent a message, not just that it is intact, use a keyed hash from the HMAC Generator.
The SHA hashes use the Web Crypto API, and MD5 uses a JavaScript version because browsers do not include it. Files are read on your device and never uploaded. An Uppercase switch changes the hex letters to capitals to match tools that print them that way.
Sources
Frequently Asked Questions
Related Tools
Bcrypt Hash Generator and Verifier
Generate bcrypt hashes with configurable rounds and verify passwords against existing bcrypt hashes.
Security and EncryptionHMAC Generator
Generate HMAC signatures using SHA-256, SHA-384, or SHA-512 with custom secret keys for message authentication.
Security and EncryptionText Encryption and Decryption
Encrypt and decrypt text using AES-256 encryption entirely in your browser. No data sent to servers.
Security and EncryptionBase64 Encode and Decode
Encode text to Base64 and decode Base64 strings back to readable text, with full UTF-8 support.
Developer Tools