Cryptographic Hash & File Checksum Generator
Compute SHA-256, SHA-384, SHA-512, and SHA-1 hashes for text and local files using the native browser Web Crypto API. 100% private, client-side cryptographic hashing with zero server transmission.
Standard 256-bit secure hash. Universal standard for certificates, git, and data integrity.
Truncated 384-bit variant of SHA-512. Designed for NSA Suite B / high security environments.
512-bit digest offering maximum cryptographic collision resistance. Highly optimized for 64-bit processors.
Legacy 160-bit algorithm with known collision vulnerabilities. Provided only for legacy checksum verification.
crypto.subtle.digest API. Neither your text nor your files are uploaded to any server, cached in cookies, or stored in localStorage.Understanding Cryptographic Hashes
Hashing vs Encryption
A cryptographic hash is a one-way mathematical function. It compresses data of any arbitrary size into a fixed-length string of bits:
- One-Way Property: You cannot reverse or decrypt a hash to recover the input text or file.
- Deterministic: The exact same input always yields the exact same hash across every computer on Earth.
- Avalanche Effect: Changing just one single bit or character in your input completely scrambles more than 50% of the resulting digest bits.
Data Integrity vs Authenticity
Verifying a file checksum proves that a downloaded file matches the author's published digest without corruption:
- Integrity: If the computed SHA-256 matches the checksum provided by a software distributor, you know the file arrived without corruption or tampering in transit.
- Authenticity: A hash alone cannot prove who created a file if an attacker replaced both the file and the published checksum. Digital signatures (PGP / GPG) are required for non-repudiation.
Cryptographic Algorithm Comparison
| Algorithm | Output Length | Hex Chars | Status & Security | Best Used For |
|---|---|---|---|---|
| SHA-256 | 256 bits | 64 | Secure (Standard) | Universal standard for certificates, git, and checksums |
| SHA-384 | 384 bits | 96 | High Security | NSA Suite B compliance and high-security enterprise environments |
| SHA-512 | 512 bits | 128 | Maximum Security | Highest collision resistance; optimal speed on 64-bit CPUs |
| SHA-1 | 160 bits | 40 | Deprecated / Legacy | Verifying older legacy files only; insecure for new signatures |
Frequently Asked Questions
What is the difference between hashing and encryption?
Hashing is a one-way mathematical function that converts arbitrary data into a fixed-length digest. A hash cannot be 'decrypted' back into original text. In contrast, encryption is a two-way process designed to obscure data so that it can later be decrypted back to plain text using a secret key.
Can two different files produce the exact same hash?
In theory, because the number of possible inputs is infinite while the hash output length is fixed, mathematical collisions exist. However, for modern algorithms like SHA-256 and SHA-512, the probability of finding two different inputs with the same hash (a collision) is so infinitesimally small (1 in 2^256) that it is practically impossible with current computing technology.
Why is SHA-1 labeled as deprecated / legacy?
In 2017, computer scientists demonstrated a practical chosen-prefix collision attack against SHA-1 (known as SHAttered). Consequently, major security standards, web browsers, and certificate authorities no longer permit SHA-1 for digital signatures or security-critical validation. It is supported here solely for verifying legacy checksums.
Are my files uploaded to your servers to compute hashes?
No. All checksum calculations occur entirely within your browser using the browser's native Web Crypto API (crypto.subtle.digest). The file bytes are read into local device memory and hashed client-side; zero bytes are transmitted to any server.
Does a matching hash prove who created the file?
No. A matching hash confirms data integrity (that the file has not been altered or corrupted in transit), but it does not prove authenticity or identity. To prove authorship or identity, cryptographic digital signatures (such as GPG/PGP or X.509 certificates) or Hash-based Message Authentication Codes (HMAC) are required.
Related Developer Utilities
Prettify, format, validate, and minify JSON data.
Encode and decode text or files to Base64.
Encode and decode URI query strings and paths.
Encode and decode HTML entities and special characters.