SHA-256 Hash Generator
SHA-256, SHA-384 and SHA-512 digests computed locally with the Web Crypto API. Nothing is uploaded.
Verify a Download in 30 Seconds
The most common real-world use for this tool: checking that a file you downloaded is the file the publisher shipped. Software sites publish the expected SHA-256 next to the download; you compute yours and compare.
- macOS / Linux:
shasum -a 256 file.dmgorsha256sum file.iso - Windows PowerShell:
Get-FileHash file.exe -Algorithm SHA256 - Compare the output to the published hash - Every character must match. One different character means a different file: corrupted, or tampered with.
Small print that matters: a matching hash proves integrity, not authorship - if an attacker controls the download page, they control the published hash too. That's what code signing and HTTPS add on top.
About the SHA-2 Family
Where SHA-256 is used
SHA-256 is the workhorse of modern cryptography. It secures:
- TLS certificates - The padlock in your browser
- Code signing and software updates
- Bitcoin mining and blockchain integrity
- File checksums - Verifying downloads aren't tampered with
Unlike MD5, no practical collisions are known, and the 256-bit output gives a comfortable margin for decades.
One thing SHA-256 is not good for by itself: storing user passwords. It's too fast - Attackers test billions of guesses per second. Password storage needs deliberately slow hashes like bcrypt or Argon2, as explained in our hashing guide.
Hashing vs encryption
A hash is one-way: you can't get the input back from the digest. Encryption is two-way: with the key, you recover the original. Use hashes to verify, encryption to protect - Our AES-256 tool handles the latter.
Related tools: Base64 encoder/decoder (encoding, not security!), UUID generator for random identifiers, and the password generator for the secrets you hash-protect.
How to Use the SHA-256 Hash Generator
Paste your text
Hashing runs locally through the Web Crypto API as you type.
Pick a variant
SHA-256 for general use; SHA-384/512 where a longer digest is specified.
Copy the hex digest
64 hex characters for SHA-256 - Compare it against a published checksum to verify integrity.
The SHA-2 family
| Variant | Output bits | Hex length | Typical use |
|---|---|---|---|
| SHA-224 | 224 | 56 chars | Constrained legacy protocols |
| SHA-256 | 256 | 64 chars | TLS certificates, file checksums, Bitcoin, JWT signing |
| SHA-384 | 384 | 96 chars | TLS suites, Suite B compliance |
| SHA-512 | 512 | 128 chars | Faster on 64-bit CPUs; long-margin applications |
SHA-256 Hash Generator - FAQ
Is SHA-256 secure in 2026?
Why shouldn't I store passwords as plain SHA-256?
What's the difference between SHA-256 and SHA-3?
More questions about passwords and security? Browse the security guides.
More Free Tools
Password Generator →AES-256 Encryption
Encrypt and decrypt text with AES-256, right in your browser.
MD5 Hash Generator
Compute MD5 checksums of any text instantly.
Base64 Encoder / Decoder
Encode and decode Base64 text and URLs.
UUID Generator
Random version-4 UUIDs, one or in bulk.
Case Converter
UPPER, lower, Title, camelCase and more.
Bcrypt Hash Generator
Hash and verify passwords with bcrypt - The slow hash built for passwords.