What is a SHA-256 hash?
A hash function turns any data into a fixed-length string — for SHA-256 that is 256 bits, written as 64 hexadecimal characters. The same text always gives the same hash, and the smallest change gives a completely different one. You can’t recover the data from the hash.
Example: SHA-256 of “abc” is ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad, while “Abc” starts with 06d90109c8cce34e… — one capital letter changes everything.
What it’s used for
- Checking that a downloaded file hasn’t been altered — compare its hash with the one the author publishes.
- Digital signatures, certificates and blockchains all rely on SHA-256.
- Finding duplicates and checking data integrity.
SHA-1, SHA-256 or SHA-512?
SHA-1 (40 characters) is considered obsolete — practical collisions have been known since 2017. Use SHA-256 or SHA-512 for new work. Plain hash functions aren’t enough for storing passwords — use deliberately slow algorithms such as bcrypt, scrypt or Argon2.
Frequently asked questions
Can SHA-256 be decrypted?
No — it isn’t encryption but a one-way function. Simple inputs (like common passwords) can still be guessed by comparing their hashes with precomputed tables.
Is my text sent anywhere?
No — the hash is calculated by your browser’s Web Crypto API.