MD5 isn't offered — the browser's Web Crypto API deliberately doesn't implement it, since it's considered broken for security purposes.
Files are read and hashed entirely in memory in your browser tab — very large files (several hundred MB or more) may take a noticeable moment, since the whole file has to be read before hashing can start.
How to Generate a Hash
Pick an Algorithm
SHA-256 is the safe general-purpose default. Use SHA-384 or SHA-512 for a larger digest, or SHA-1 only when a legacy system specifically requires it.
Enter Text or Choose a File
Paste text directly, or click "Choose a file" to hash a document, image, or archive instead — both use the exact same algorithm under the hood.
Copy the Digest
The result is a fixed-length lowercase hex string. Copy it to compare against a published checksum or store as a fingerprint.
What Hashing Is — and Isn't
✓ One-Way, By Design
A cryptographic hash function takes input of any size and produces a fixed-length "digest" that can't be turned back into the original input — there is no decryption step or secret key that reverses it. That's precisely what makes hashes useful for verifying data without storing the data itself.
✓ Not the Same as Encryption
Encryption is reversible on purpose — anyone holding the right key can decrypt ciphertext back into the original plaintext. Hashing has no key and no reverse operation at all. If you need to send data privately and get it back later, you need encryption; if you need to prove data hasn't changed, you need a hash.
✓ Runs on the Web Crypto API
Every digest here is computed with crypto.subtle.digest(), the standardized, browser-native implementation of SHA-1/256/384/512 — the same primitive used under the hood by HTTPS and countless production systems, rather than a hand-rolled JavaScript hash function.
✓ Files Never Leave Your Browser
When you hash a file, it's read locally with the File API and passed straight into crypto.subtle.digest() in memory — it is never uploaded anywhere, which matters if you're fingerprinting something sensitive like an internal build artifact or a document.
Frequently Asked Questions
Can I reverse a hash back into the original text?
No — that's the entire point of a one-way hash function. There's no mathematical operation that takes a SHA-256 digest and produces the original input, and none of the algorithms offered here have ever been "broken" in a way that allows reversal. The only way to find text that produces a given hash is to guess inputs and hash each one (a brute-force or dictionary attack), which is why hashing raw passwords with plain SHA-256 is still a bad idea against common, guessable passwords.
Is hashing the same as encryption?
No. Encryption is reversible with the correct key; hashing is deliberately one-way and has no key at all. People sometimes say "hash my password" when they mean "encrypt," but for password storage what you actually want is a slow, purpose-built password-hashing function like bcrypt, scrypt, or Argon2 — not a fast general-purpose hash like SHA-256, which is easy to brute-force at scale precisely because it's designed to be fast.
Why isn't MD5 or plain SHA-1 offered as an option?
The browser's built-in Web Crypto API — which this tool relies on for correctness rather than a custom implementation — simply doesn't implement MD5 at all, because it's long been considered broken for security-relevant use. SHA-1 is included here since it's still occasionally required by legacy systems and is fine for basic checksums, but it's also been demonstrated to be vulnerable to collision attacks (two different inputs producing the same hash) since 2017, so SHA-256 or better is recommended for anything security-relevant.
Why is the output always the same length no matter what I hash?
That's a defining property of a hash function: it maps input of any length onto a fixed-size output. SHA-256 always produces 256 bits (64 hex characters) whether you hash one letter or an entire novel; SHA-512 always produces 512 bits (128 hex characters). This is also exactly what makes hashes useful as compact "fingerprints" for verifying large files — you compare a short fixed-length string instead of the whole file.
Check a content fingerprint
Calculate supported SHA hashes for text or files with Web Crypto. Compare fingerprints locally without uploading the input.
Steps for text and file hash generator
- Choose text or a file.
- Select the hash algorithm.
- Generate and compare the digest with a trusted value.
Can a hash be decoded?
A cryptographic hash is not reversible encoding or encryption. SHA-1 is retained for compatibility, not new security designs.