SHA-256 produces a unique 64-character fingerprint from any text. Type or paste your text, get the hash instantly. The processing happens in your browser so your data stays on your device.
SHA-256, SHA-1, or SHA-512. Instant, private, free.
Generate Hash →SHA-256 takes any input (1 character or 1 million characters) and produces exactly 256 bits of output (64 hex characters). The algorithm:
Two key properties: deterministic (same input = same hash always) and avalanche effect (one bit change in input = completely different hash).
| Input | SHA-256 Hash (first 16 chars...) |
|---|---|
| hello | 2cf24dba5fb0a30e... |
| Hello | 185f8db32271fe25... |
| hello | d75d15d46fb82e9a... |
| The quick brown fox | d7a8fbb307d7809469ca9abcb0082e4f8d5651e46d3cdb762d02d0bf37c9e592 |
Notice "hello" vs "Hello" produce completely different hashes. Case matters. Trailing spaces matter. Every bit matters.
Software websites publish SHA-256 checksums. After downloading, hash the file locally and compare. If they match, the file has not been tampered with during download.
Bitcoin mining is fundamentally SHA-256. Miners hash block data looking for a hash starting with enough zeros. The difficulty of finding such a hash is what secures the network.
Webhook signatures often use HMAC-SHA-256. The sender hashes the payload with a shared secret. The receiver re-hashes with the same secret and compares. If they match, the webhook is authentic.
Hash each file or data chunk. If two chunks produce the same SHA-256, they are identical (with overwhelming probability). Store only one copy.
| Algorithm | Output Size | Security | Speed | Use Case |
|---|---|---|---|---|
| SHA-1 | 40 hex chars (160 bits) | Broken for collisions | Fastest | Legacy only, git commits |
| SHA-256 | 64 hex chars (256 bits) | Secure | Fast | General purpose, checksums, blockchain |
| SHA-512 | 128 hex chars (512 bits) | Secure | Slightly slower | High-security applications |
SHA-1 is no longer considered secure for cryptographic purposes but is still used in git for commit hashing. For any new project, use SHA-256 or SHA-512.
import hashlib; hashlib.sha256(b"hello").hexdigest()await crypto.subtle.digest("SHA-256", new TextEncoder().encode("hello"))echo -n "hello" | sha256sumGet-FileHash -Algorithm SHA256 file.txtRelated: Base64 Encoder for encoding hash output, Password Generator for secure strings, Number Base Converter for hex values.