If a file is selected, its contents are hashed instead of the text above. Nothing is uploaded — the file is read locally.

Hash Generator: MD5, SHA-1, SHA-256, SHA-512 — All Four in One Place

You download a Linux ISO and the publisher's website lists a SHA-256 checksum next to the download link. You need to verify that the file you received was not corrupted during transfer or tampered with by a man-in-the-middle attacker. You are storing user passwords in a database and need to hash them before writing a single plaintext credential to disk. You are generating a cache-busting filename for a static asset in your CDN deployment pipeline and need a short, deterministic fingerprint that changes only when the file content changes. In each case, the answer is a cryptographic hash function — a one-way mathematical transformation that converts any input, from a three-character string to a 4.7 GB ISO image, into a fixed-length hexadecimal digest that cannot be reversed to recover the original input.

This tool generates MD5, SHA-1, SHA-256, and SHA-512 hashes simultaneously from a single input. Paste text or drop a file, and you get all four digests side by side. When you need to verify a download against a published checksum, you do not need to guess which algorithm the publisher used — you see all four at once and match whichever one they published. Everything runs in your browser using the Web Crypto API. No server, no upload, no waiting.

How It Works

Paste your input text into the text field or click Upload File to hash a file directly from your disk. The file never leaves your browser — the Web Crypto API reads the file's binary content locally and feeds it into the hashing algorithm. The generator outputs four hash values simultaneously:

MD5 produces a 128-bit digest displayed as 32 hexadecimal characters. It is still widely used for non-security checksums — verifying file integrity after download, generating cache keys, and fingerprinting data in content-addressable storage systems. It is cryptographically broken for security applications and should never be used for password storage or digital signatures.

SHA-1 produces a 160-bit digest (40 hex characters). Deprecated for security use after the SHAttered collision attack in 2017 demonstrated practical collision generation, it still appears in legacy systems and Git's internal object identification. For any new project, use SHA-256 instead.

SHA-256 produces a 256-bit digest (64 hex characters) and is the current minimum recommendation for production security. It underpins Bitcoin's proof-of-work algorithm, TLS certificate validation, and most modern password hashing pipelines when combined with a salt and multiple iterations.

SHA-512 produces a 512-bit digest (128 hex characters) and provides an even larger security margin. It is the default choice for systems that need long-term collision resistance and can afford the marginally higher computational cost.

The tool also supports HMAC mode. Enter a secret key alongside your input, and the generator uses the HMAC construction — a standardized algorithm defined in RFC 2104 — to produce a keyed hash. Unlike a plain hash, an HMAC cannot be reproduced without knowing the secret key, making it suitable for API request signing (verifying that a webhook payload came from the claimed sender), message authentication in network protocols, and JWT token generation.

Real-World Scenarios

Download integrity verification. A developer downloads a PostgreSQL binary from the official mirror network. The download page lists an SHA-256 checksum. They drop the downloaded file into the hash generator, confirm that the SHA-256 output matches the published value character for character, and proceed with installation. No corrupted binary can silently slip through, no tampered file can execute on their machine without detection. The convenience of getting all four algorithms simultaneously saves the step of wondering which algorithm the publisher used — whether the checksum is MD5, SHA-1, or SHA-256, this tool produces all of them in a single operation.

Password storage pipeline. A backend developer is implementing user authentication. They never store plaintext passwords in the database. Instead, they concatenate each password with a per-user random salt, hash the result with SHA-256, and store only the hash and salt values. When a user logs in, the server repeats the hashing process on the submitted password and compares the result against the stored hash. Even if the database is compromised, attackers cannot recover the original passwords from the hash values alone.

CDN cache invalidation. A frontend engineer deploys a new version of a JavaScript bundle to a CDN. Rather than manually incrementing a version number in the filename — a process that is error-prone and easy to forget — the build pipeline hashes the file content with SHA-256, truncates the digest to the first 8 characters, and appends it to the filename as a content hash. Any change to the file produces a new hash and a new filename, which the CDN treats as a fresh resource. No more stale caches because someone forgot to bump the version string.

Important Limits

Cryptographic hashing is a one-way operation by design. You cannot recover the original input from a hash value. If you need reversible encoding — for example, encoding binary data as ASCII text for transport through email or JSON — use Base64 encoding instead. Hashing and encoding solve fundamentally different problems.

MD5 and SHA-1 are broken for security use and should never appear in new code that handles passwords, digital signatures, or certificate validation. They are included in this tool for checksum verification of existing downloads and for compatibility with legacy systems that still reference these algorithms in their published checksum values.

For hashing extremely large files — ISO images, VM disk files, database dumps exceeding several gigabytes — browser memory and the Web Crypto API impose practical limits. At that scale, use command-line tools like sha256sum on Linux, Get-FileHash in PowerShell, or shasum -a 256 on macOS, which stream the file through the hashing algorithm in chunks without loading the entire file into memory at once.

Privacy

Every single operation — text hashing, file reading, HMAC keyed hashing, and digest formatting — executes entirely inside your browser using the Web Crypto API and standard JavaScript. Your input text, uploaded files, and HMAC secret keys never leave your device at any point. This is essential when the data being hashed contains passwords, API keys, proprietary source code, or internal documents that must never be transmitted over the network.