SHA-256 Hash Generator
256-bit SHA-256 digest of the input bytes. This is the default integrity hash on CZNull.
Rated 4.9 out of 5 based on 891 reviews
How to generate a SHA-256 hash
- Paste the text, hex, or Base64 you want to hash.
- Set Input encoding (UTF-8 for normal text).
- Choose hex or Base64 output. Turn on HMAC and enter a key if you need a keyed digest.
- Compare the result to a published checksum using an exact string match.
SHA-256
SHA-2 family cryptographic hash function
| Digest size | 256 bits (64 hex characters) |
|---|---|
| Block size | 512 bits |
| Standard | FIPS 180-4 / SHA-2 |
| Engine | Web Crypto subtle.digest("SHA-256"), or HMAC-SHA-256 |
What SHA-256 is
SHA-256 is a 256-bit member of SHA-2. People use it for file integrity, Git objects, and many certificate fingerprints. Public collision attacks are not practical today.
Still matching a legacy checksum? See MD5 and SHA-1, or browse all hash tools.
How this page hashes
Input encoding turns what you paste into bytes. Those bytes go to the browser Web Crypto API as SHA-256 or HMAC-SHA-256. If Web Crypto is missing, the workbench reports an error instead of a guessed digest.
When to use SHA-256
Use SHA-256 for checksums and content addressing. It is not a password storage function by itself. Pair a password with a slow KDF such as Argon2 or bcrypt in your own stack. Hashing is not encryption. Anyone can hash the same input and compare.
HMAC-SHA-256
Turn on HMAC when you need a keyed digest. The page hashes the message with your key using HMAC-SHA-256. Set key encoding to match how the other system stores the key. Empty input still produces a defined digest of the empty byte string.