What SHA-256 is used for
SHA-256 is part of the SHA-2 family designed by the US National Security Agency and published by NIST. It turns any input into a fixed 64-character fingerprint. It is the standard choice today for checking that a download has not been changed, for signing software and TLS certificates, and in systems such as Bitcoin.
This page opens the Hash Generator with SHA-256 already selected and the word "hello" filled in, so you can see a real result straight away. Replace it with your own text, or switch to the file tab and choose a file: the hash is calculated on your device, so even large or private files never leave your computer.
Algorithm facts
| Output | 256 bits, shown as 64 hexadecimal characters |
|---|---|
| Family | SHA-2 (NIST, 2001) |
| Security status | No practical attacks known; safe for integrity checks and signatures |
| Built into | Windows: certutil -hashfile file SHA256 · macOS: shasum -a 256 file · Linux: sha256sum file |
Example hashes
Every SHA-256 hash is 64 hexadecimal characters (256 bits), whatever the size of the input. Changing one letter, or adding a full stop, produces a completely different result:
| Input | SHA-256 hash |
|---|---|
hello | 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 |
Hello | 185f8db32271fe25f561a6fc938b2e264306ec304eda518007d1764826381969 |
hello. | 1589999b0ca6ef8814283026a9f166d51c70a910671c3d44049755f07f2eb910 |
The hash of empty input is always e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855. If you see that value, nothing was hashed.
Values calculated when this page was built, using UTF-8 text with no trailing newline. Paste any of the inputs above into the tool to check them.
How to use the SHA-256 Hash Generator
- Type or paste text, or choose the file tab and add a file.
- The SHA-256 hash appears instantly.
- To verify a download, paste the publisher’s checksum into the compare box.
- Copy or download the hash if you need to keep it.
Tips
Verifying a download
Software sites often list a SHA-256 checksum next to the download link. Hash the file you downloaded here and compare: if one character differs, the file is damaged or not the original.
Not for storing passwords
SHA-256 is fast, which is good for checksums but bad for passwords, because attackers can try billions of guesses a second. Websites should store passwords with bcrypt, scrypt or Argon2.
Text vs file hashes
A file containing "hello" and the text "hello" only match if the file has no trailing newline. Many editors add one, which changes the hash completely.
Other hash algorithms
Need different settings? Use the full MD5 & SHA Hash Generator.
Frequently asked questions
Can a SHA-256 hash be reversed?
No. Hashing is one way: there is no key to undo it. The only way to find the input is to guess it, which is why short, common inputs are easy to look up and long random ones are not.
Why is my SHA-256 different from the website’s?
Usually the file is not identical: an incomplete download, a different version, or a trailing newline or space in text. Check you are comparing the same file and the same algorithm.
Is SHA-256 the same as SHA-2?
SHA-256 is one member of the SHA-2 family, which also includes SHA-224, SHA-384 and SHA-512.
Are uppercase and lowercase hashes different?
No. Hexadecimal is not case sensitive, so 2CF24D… and 2cf24d… are the same hash.