MD5 & SHA Hash Generator
Compute SHA and MD5 hashes of text or files.
or hash a file
A hash is a short fingerprint of data: the same input always gives the same hash, and any change gives a different one. Type text or drop a file of any size to get its MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes at once — to check a download against its published checksum, or to compare files without sending them anywhere. Everything is computed in your browser, so your text and files never leave your device; it's free and needs no sign-up.
How to generate a hash
- Type or paste text and click Hash text, or drop a file of any size (or click to choose one).
- All five hashes appear at once: MD5, SHA-1, SHA-256, SHA-384 and SHA-512.
- Compare the hash with the checksum you were given, or copy any value with its Copy button.
Features
- MD5, SHA-1, SHA-256, SHA-384 and SHA-512 in one pass
- Text (hashed as UTF-8) or any file, of any size
- Large files read 4 MB at a time, so memory use stays small, with the progress shown
- One-click copy for every value
- Computed with WebAssembly in your browser
Is it private?
Yes. Text and files are hashed in your browser with WebAssembly; nothing is uploaded, so you can hash private documents and very large files without sending them anywhere.
Frequently asked questions
How do I check a file against its checksum?
Drop the file and compare the hash for the algorithm you were given, usually SHA-256, with the published value: if every character matches, the file is exactly the one that was published. Upper or lower case makes no difference in a hex hash.
Which algorithm should I use?
SHA-256, unless you were given a checksum in another one. MD5 and SHA-1 are fine for spotting accidental changes, but not for security: different files with the same MD5 or SHA-1 hash can be made on purpose.
Can it hash large files?
Yes. Files are read 4 MB at a time, so even multi-gigabyte files use little memory, and the progress is shown as it goes.
Why is my text's hash different from the command line?
Usually because of a newline. Text is hashed as UTF-8 exactly as typed, the same as most command-line tools, but echo adds a newline at the end: use echo -n or printf to hash the same bytes. A space at the start or end changes the hash too.
Can I use SHA-256 to store passwords?
No. Fast hashes such as MD5 and SHA-256 are the wrong tool for passwords, because guesses can be tried billions of times a second. Store passwords with a slow password hash such as bcrypt or Argon2.