Hash generator: MD5, SHA-1, SHA-256, SHA-512

Get MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text or file and compare a download's checksum. Files never leave your device.

Runs in your browser. Nothing you paste is uploaded.

MD5 and SHA-1 are fine for checksums but are no longer safe for passwords or signatures; use SHA-256 or higher.

How to use it

  1. Choose Text or File.
  2. Type text, or pick a file of any type and size your device can open.
  3. Read the MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes, and copy the one you need.
  4. To verify a download, paste the checksum from the publisher's site into the compare box.

Check that a file is genuine

A hash is a short fingerprint of data: change a single byte and the hash changes completely. Software publishers list SHA-256 checksums next to downloads such as Linux ISOs, Android ROMs and installers. Hash your downloaded file here, paste the published value into the compare box, and a match proves the file was not corrupted or tampered with. Because the file is read on your device, even a multi-gigabyte image never leaves your computer.

SHA hashes are computed with the browser's built-in Web Crypto API. MD5 is not available there, so it is computed with a small, tested JavaScript implementation that gives the same results as standard md5 tools.

Which hash to use

Use SHA-256 for checksums and integrity checks. MD5 and SHA-1 are still common in older systems and for de-duplicating files, but they are broken for security: different inputs can be made to share a hash. Never store passwords as plain hashes; use a password-hashing function like bcrypt, scrypt or Argon2 on the server.

Questions

Why is my hash different from another tool's?
Usually the text differs invisibly: a trailing newline, a space, or Windows line endings. Hashes of text are calculated on its UTF-8 bytes.
Can I hash large files?
Yes, up to what your device's memory allows. Several hundred megabytes work on most computers.
Can a hash be reversed?
No. Hashes are one-way. Short or common inputs can be guessed by trying many values, which is why they must not be used alone for passwords.
Is what I paste sent to a server?
No. The tool runs as JavaScript in your browser. Your text, files and keys stay on your device, so it is safe to use with internal data, tokens and customer records. It keeps working offline after the page has loaded once.

More free tools