Add text or a file
Type or paste text, or drop a file to get its checksum.
Type some text or choose a file and see its MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes. Paste a checksum to see whether it matches. Your file never leaves your device.
100% private — text and files are hashed in your browser and never uploaded.
Guides: Checksums and hashes: how to verify a download with SHA-256 · UUID v4 vs v7: what they are and when to use each
Keep going with your result in another tool. Nothing is uploaded.
Type or paste text, or drop a file to get its checksum.
All the common algorithms at once, each with a copy button.
Paste the one published by the source to check that the file is intact.
A hash function turns any amount of data, a word or a huge file, into a short fixed-length string of characters, its hash or checksum. The same input always gives the same hash, but changing a single bit gives a completely different one, and it is practically impossible to work back from the hash to the input. That makes hashes useful as fingerprints: to check that a download arrived intact, to detect that a file has changed, to identify duplicates and as building blocks of digital signatures.
Websites often publish the checksum of a file they offer. Choose the file here, paste the published checksum into the comparison box and the tool tells you whether it matches any of the hashes. If it does, the file is what the publisher made. If not, the download was corrupted or altered, and you should not use it. The file is read in your browser and never uploaded.
An HMAC mixes a secret key into the hash, so that only someone who knows the key can produce or check it. It is used to authenticate messages, sign API requests and webhooks. Tick the HMAC option, enter the key and you get HMAC-SHA-1, SHA-256, SHA-384 and SHA-512. MD5 is not offered for HMAC.
A plain fast hash is the wrong tool for password storage, because attackers can test billions of guesses a second. Use a purpose-built algorithm such as Argon2, scrypt or bcrypt for that. This tool is for checksums and integrity.
Text is hashed as UTF-8, so the result may differ from another tool that uses a different encoding or that adds a line break at the end of the text. It does not crack hashes or look them up. Very large files are limited by your device's memory. To generate random values for keys and tokens, use the random string generator.
A hash function takes bytes, so text is encoded as UTF-8 first, as the tool does. Each snippet below was run and the comments show the real output for the text hello
.
import hashlib
data = "hello".encode("utf-8")
print(hashlib.sha256(data).hexdigest()) # 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
print(hashlib.sha1(data).hexdigest()) # aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
print(hashlib.md5(data).hexdigest()) # 5d41402abc4b2a76b9719d911017c592
const data = new TextEncoder().encode("hello");
const digest = await crypto.subtle.digest("SHA-256", data);
const hex = [...new Uint8Array(digest)].map(b => b.toString(16).padStart(2, "0")).join("");
console.log(hex); // 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
printf '%s' hello | shasum -a 256 # 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 - echo hello | shasum -a 256 # 5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03 -
echo hello hashes helloplus a line break, which is a different input and gives a different hash. Use
printf '%s' to hash exactly the text.crypto.subtle is only available on secure pages (HTTPS or localhost) and does not include MD5. On Linux, sha256sum does the same as shasum -a 256.hashlib.sha256("hello".encode("utf-8")).hexdigest(). For helloit returns
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824.More utilities that also run without leaving your browser.