Text hash generator
Cryptographic digest of a text in MD5, SHA-1, SHA-256 and CRC32.
Calculator inputs
Results
Enter your values and press “Calculate” to see the result.
In short
- What it calculates
- Cryptographic digest of a text in MD5, SHA-1, SHA-256 and CRC32.
- Formula used
MD5: 128 bits (32 hex characters)- Example
- The text “KalCum” produces a 64-character hexadecimal SHA-256 string, completely different from the one for “kalcum”.
MD5, SHA-1 and SHA-256 hash generator
A hash turns any text into a fixed-length fingerprint. The same text always yields the same hash, and changing a single letter transforms it completely.
It is used to verify integrity, compare files and detect tampering.
How it works
The text is processed with each algorithm and returned in hexadecimal. The operation is one-way: there is no method to recover the text from the hash.
Formula
MD5: 128 bits (32 hex characters)
SHA-1: 160 bits (40 characters)
SHA-256: 256 bits (64 characters)
Worked example
The text “KalCum” produces a 64-character hexadecimal SHA-256 string, completely different from the one for “kalcum”.
Explanation
A hash cannot be reversed, but it can be guessed
The function is one-way: text produces the hash and not the reverse. That does not make it secure. An attacker with a list of common passwords can compute their hashes and compare. Since precomputed hash tables circulate freely, any common password is identified in seconds.
MD5 and SHA-1 are broken
Practical collisions have been found in both: two different texts producing the same hash. That invalidates their use for signatures and integrity verification. They still serve as a checksum against transmission errors, but not against an adversary.
Passwords need slow functions
Algorithms designed for passwords, such as bcrypt, scrypt or Argon2, are deliberately slow and use a different salt per user. That slowness, irrelevant when verifying one login, makes trying millions of candidates unviable. Storing passwords with plain SHA-256 is a serious security failure.
Verifying downloads
The commonest legitimate use is checking that a downloaded file matches the original. If the hash published by the author and that of the received file agree, the transfer was intact.
Frequently asked questions
Is MD5 suitable for passwords?
No. MD5 and SHA-1 are broken against collisions and far too fast. Passwords need bcrypt or Argon2 with a salt.
Can a hash be reversed?
Not mathematically, but hashes of common texts are catalogued in public tables, so they hide nothing predictable.
Can I use SHA-256 to store passwords?
It is not suitable. Passwords require slow salted functions such as bcrypt, scrypt or Argon2, designed specifically to resist brute force attacks.
Is MD5 useful for verifying a file?
For detecting transmission errors yes, but not against an attacker: practical collisions exist that allow the hash to be forged.
Need to calculate something else?
These tools are often used alongside this calculator.
Passwords
Random passwords with calculated entropy, generated in your browser.
Base64
Turn text into Base64 and recover the original text.
UUID
Random unique identifiers ready for databases and APIs.
Base converter
Convert numbers between bases 2, 8, 10, 16, 32 and 36.
Colours
Convert between colour formats and check contrast against white.
Timestamp
Convert between Unix timestamps and readable UTC dates.