Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text or files right in your browser.
Hash Generator tool
Example
Input: hello
Result: MD5: 5d41402abc4b2a76b9719d911017c592, SHA-256: 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
The text is hashed as UTF-8 bytes. SHA-1 of the same input is aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d, and changing a single character changes every hash completely.
Hash Output Sizes
| Algorithm | Bits | Hex characters | Safe for security? |
|---|---|---|---|
| MD5 | 128 | 32 | No, collisions found |
| SHA-1 | 160 | 40 | No, collisions found |
| SHA-256 | 256 | 64 | Yes |
| SHA-384 | 384 | 96 | Yes |
| SHA-512 | 512 | 128 | Yes |
Lengths measured from each algorithm's output for the word hello.
- Type or paste the text you want to hash, or switch to File Input and select a file.
- Click "Generate Hashes" to see the output for all supported algorithms (MD5, SHA-1, SHA-256, SHA-384, SHA-512) at once.
- Compare hash values across algorithms to choose the one that fits your use case.
- Click the copy button next to any individual hash to copy it to your clipboard.
- Use the generated hash for checksums, data integrity verification, or password storage workflows.
MD5, SHA-1 and SHA-256 Hashes Explained
A hash function turns any input into a fixed-length fingerprint. This tool computes the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of text or a file in one click. The word hello, for example, always gives the SHA-256 hash that starts 2cf24dba5fb0.
Three properties make hashes useful. The same input always gives the same output. A tiny change, even one letter, gives a completely different result. And you cannot run a hash backwards to get the input. That is why hashes are used to check downloads, spot changed files, build cache keys and, with extra safeguards, store passwords.
The algorithms differ in length and strength, as the table shows. MD5 and SHA-1 are broken for security, because researchers can create two different inputs with the same hash. They are still fine for catching accidental changes. For anything security-related, use SHA-256 or longer. Passwords need a slow, salted method instead, such as the one in the Bcrypt Hash Generator.
Text is hashed as UTF-8 bytes exactly as typed, including any trailing space or line break. To check a download, switch to File Input, pick the file and compare the SHA-256 value with the one the publisher lists. Output is lowercase hex, with an Uppercase switch. The SHA hashes use the browser's Web Crypto API and MD5 uses a built-in implementation, so nothing is uploaded. For keyed signatures, see the HMAC Generator.
Sources
Frequently Asked Questions
Related Tools
Password Generator
Generate strong, secure passwords with customizable length, character types, and multi-word passphrases.
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 ToolsBcrypt Hash Generator and Verifier
Generate bcrypt hashes with configurable rounds and verify passwords against existing bcrypt hashes.
Security and Encryption