Hash Generator
How to Generate Hashes Online
Type or paste the text you want to hash into the input field above.
The tool instantly calculates multiple hash values — MD5, SHA-1, SHA-256, and more — all at once.
Click Copy next to any hash value to copy it to your clipboard.
What a hash is good for
A hash function turns any text into a fixed-length fingerprint. The same input always gives the same fingerprint; changing a single character gives a completely different one; and the fingerprint cannot be turned back into the text.
The five algorithms, with the hash of the word "hello"
| Algorithm | Length | Hash of "hello" (start) | Status |
|---|---|---|---|
| MD5 | 32 hex characters | 5d41402abc4b2a76… | Broken for security; fine for spotting accidental changes |
| SHA-1 | 40 | aaf4c61ddcc5e8a2… | Broken for security; still used by Git |
| SHA-256 | 64 | 2cf24dba5fb0a30e… | Current standard |
| SHA-384 | 96 | 59e1748777448c69… | Secure; used in some certificates |
| SHA-512 | 128 | 9b71d224bd62f378… | Secure; fast on 64-bit processors |
- Every character counts, including capital letters, spaces and line breaks. Hello and hello have unrelated hashes, and a trailing space or a newline at the end changes the result completely. That is the usual reason a hash "does not match".
- Text is hashed as UTF-8, the encoding nearly all systems use, so results agree with
sha256sum, PHP, Python and other tools for the same text. - This page hashes text, not files. To verify a download, use the command line:
sha256sum fileon Linux,shasum -a 256 fileon macOS,certutil -hashfile file SHA256on Windows.
Which one to use
- SHA-256 whenever you have a choice: checksums, signatures, API request signing.
- MD5 or SHA-1 only when an older system demands them. Two different inputs with the same MD5 can be manufactured on purpose, so they prove nothing against a deliberate attacker.
- None of these for storing passwords. They are designed to be fast, which lets an attacker test billions of guesses per second against a stolen database. Password storage needs deliberately slow functions such as bcrypt or Argon2, with a salt. Our password security guide explains why.
The hashes are calculated in your browser; the text you enter is not sent to our server.
Frequently Asked Questions
Which hash algorithm should I use?
For security purposes (passwords, integrity checks), use SHA-256 or SHA-512. MD5 and SHA-1 are considered insecure for cryptographic use but are still fine for non-security checksums.
Can I reverse a hash to get the original text?
No. Hash functions are designed to be one-way. You cannot mathematically reverse a hash.
Why does MD5 produce a shorter hash than SHA-256?
MD5 produces a 128-bit (32 character hex) hash, while SHA-256 produces a 256-bit (64 character hex) hash. The longer hash provides exponentially more possible combinations.
Is this tool safe for generating password hashes?
This tool is for educational purposes and quick checksums. For production password hashing, use dedicated algorithms like bcrypt, scrypt, or Argon2.