Hash Generator
Compute MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of text or files.
Hashes update as you type. Pick a file to hash its contents instead.
- MD5
—- SHA-1
—- SHA-256
—- SHA-384
—- SHA-512
—
How it works
A hash function turns any input into a fixed-length fingerprint: change one byte and the output changes completely. This tool runs the browser's own Web Crypto implementation for SHA-1, SHA-256, SHA-384 and SHA-512, and a small JavaScript routine for MD5, which Web Crypto does not ship. Text is encoded as UTF-8 before hashing, matching what md5sum, sha256sum, Python and Node produce for the same string. Files are hashed as raw bytes, so the result is identical to running the command-line tools on the file.
Common questions
- Which one should I use? SHA-256 is the default choice for checksums and signatures today. MD5 and SHA-1 are fine for detecting accidental corruption but are broken for security purposes, so never use them to protect passwords or verify untrusted downloads.
- What does the HMAC key do? With a key, the SHA variants become HMAC-SHA values, a keyed fingerprint used to sign API requests and webhooks. Anyone without the key cannot reproduce or forge it. MD5 is skipped in this mode.
- Why does my hash differ from another site? Check for a trailing newline, Windows line endings, or a different text encoding. "abc" and "abc\n" are different inputs.
- How big a file can I hash? The file is loaded fully into memory first, so a few hundred megabytes is fine on a desktop; very large files may be slow on phones.
Privacy
Text and files are hashed on your device only. Nothing is uploaded, which also makes this safe for checking private documents and secrets.