- Home
- Tools
- Developer Tools
- Hash Generator
- SHA-256 Hash Generator
SHA-256 Hash Generator
Get the SHA-256 of a text or a file in your browser, compare it with a published checksum, or sign a message with HMAC-SHA-256.
0 bytes as UTF-8
Result
SHA-256
–
SHA-256 in short
SHA-256 produces 256 bits, written as 64 hexadecimal characters. It is part of the SHA-2 family that the US standards institute NIST published in 2001, and it is the hash most things rely on today. No practical attack on it is known.
| Length | 256 bits (32 bytes) |
|---|---|
| Written as hex | 64 characters |
| Written as Base64 | 44 characters |
| Of nothing at all (the empty text) | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 |
| Of the word hello | 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 |
Where it is used
- Download pages list a SHA-256 so that you can check a file arrived unchanged.
sha256sum fileon Linux,shasum -a 256 fileon macOS andcertutil -hashfile file SHA256on Windows give the same value as this page. - TLS certificates are signed with it, and Docker names images by their SHA-256.
- Bitcoin applies it twice to every block.
- GitHub, Stripe and many others sign their webhooks with HMAC-SHA-256. The HMAC tab calculates that.
What a matching hash proves
It proves that your file is identical to the one the hash was made from. Whether that was the right file depends on where the hash came from. A checksum on the same server as the download protects against a broken transfer, and not against someone who replaced both.
Not for passwords on its own
SHA-256 is fast by design, and speed is what someone guessing passwords wants: a single graphics card tries billions of them per second. Passwords belong in bcrypt, scrypt or Argon2, which are slow on purpose and add a salt.
The hash generator shows MD5, SHA-1, SHA-256, SHA-384, SHA-512 and CRC-32 of the same input next to each other.