Hash Generator
Calculate MD5 and SHA hashes of text or a file, and check a checksum.
Runs in your browser — nothing is uploaded
Hashed as UTF-8. Spaces and line breaks count.
- MD5
— - SHA-1
— - SHA-256
— - SHA-384
— - SHA-512
—
How to use Hash Generator
- 1
Choose Text and type, or choose File and select Choose a file.
- 2
Read the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes as they appear.
- 3
To verify a download, paste the published checksum into Compare with a hash; the matching row turns green.
- 4
Select Copy next to any hash, and tick Uppercase if you need capital hex letters.
About this tool
A hash function turns any input into a fixed-length fingerprint. Change one character and the hash changes completely, which makes hashes ideal for checking that a downloaded file is identical to the original: compare the SHA-256 the publisher lists with the one shown here. SHA-1, SHA-256, SHA-384 and SHA-512 are computed with your browser's built-in Web Crypto API; MD5 uses the spark-md5 library.
Text is hashed as UTF-8 bytes exactly as typed, including spaces and line breaks, so “hello” and “hello ” (with a trailing space) give different results. Many command-line examples, such as echo hello | sha256sum, add a newline at the end, which is why their output can differ from a hash of the same word typed here.
MD5 and SHA-1 are broken for security: attackers can create two different inputs with the same hash. They are still fine as quick checksums against accidental corruption, but use SHA-256 or stronger for anything security-related. None of these are suitable for storing passwords, which need a slow, salted algorithm such as bcrypt, scrypt or Argon2.
Files are read into memory and hashed on your device, so they never leave your computer. Very large files, several gigabytes, may exceed your browser's memory. The browser only allows SHA hashing on secure (https) pages.
Questions people ask
How do I check the SHA-256 checksum of a download?
Choose File, select the downloaded file, and paste the published checksum into Compare with a hash. If the SHA-256 row turns green, the file is intact.
Is MD5 secure?
No. MD5 collisions can be created deliberately, so it should not be used for signatures or security. It is still fine for detecting accidental file corruption.
Can a hash be reversed to get the original text?
No. Hashes are one-way. Short or common inputs can sometimes be guessed by trying many candidates, which is why passwords need special slow hashes.
Why is my hash different from the one in my terminal?
Usually a trailing newline. Commands like echo add one; use echo -n, or include the line break in the text here.
Related tools
- Base64 Encode & DecodeEncode and decode Base64 text, or turn any file into a data URL.
- UUID GeneratorGenerate random v4 or time-ordered v7 UUIDs, one or a thousand at a time.
- JWT DecoderPaste a JWT to read its header, payload and expiry time.
- JSON FormatterBeautify, minify and validate JSON, with errors pinpointed to the line.
- URL Encode & DecodePercent-encode text for a URL, or decode an encoded URL back to text.
- Regex TesterWrite a regular expression and see every match and group highlighted live.