How to use the sha-256 hash generator
- Type or paste text, or choose a file.
- The hashes appear immediately underneath.
- Press Copy next to the one you need, or compare it with the checksum you were given.
What is a hash?
A hash function turns any input, from a single word to a multi-gigabyte file, into a short fixed-length fingerprint. The same input always gives the same hash, and changing even one character produces a completely different one. It is a one-way process: you cannot work backwards from the hash to the input.
| Algorithm | Length | Status |
|---|---|---|
| MD5 | 32 hex characters | Broken for security; fine for checking accidental file corruption |
| SHA-1 | 40 | Broken for security; still seen in older systems and Git |
| SHA-256 | 64 | Secure; today's standard |
| SHA-384 | 96 | Secure |
| SHA-512 | 128 | Secure |
What hashes are used for
- Verifying downloads. Software sites publish a checksum. Hash the file you downloaded here and compare: if the values match, the file is complete and unaltered.
- Detecting duplicates and changes in files and records.
- Digital signatures, certificates and blockchains, which all rely on SHA-256.
Do not hash passwords with these
Plain MD5 or SHA hashes are designed to be fast, which makes them easy to brute-force. Applications should store passwords with a slow, salted algorithm such as bcrypt, scrypt or Argon2.
Text is hashed as UTF-8, with no line break added at the end. The echo command in a terminal adds one by default, so echo hello | md5sum gives a different result; use echo -n.
About SHA-256
SHA-256 is part of the SHA-2 family published by the US National Institute of Standards and Technology in 2001. It produces a 256-bit value written as 64 hexadecimal characters. No practical attack against it is known. It secures HTTPS certificates, software updates and Bitcoin, and it is the checksum most download pages publish today.