Free developer tool

MD5 Hash Generator (plus SHA-1 and SHA-256)

Hash text or files with MD5, SHA-1, SHA-256, SHA-384 and SHA-512 in your browser, and compare against a checksum.
0 bytes (UTF-8)
AlgorithmHash
MD5
…
SHA-1
…
SHA-256
…
SHA-384
…
SHA-512
…

MD5, SHA-1 and SHA-256 in one place

Type text or drop in a file and you get its MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes at once. Text is hashed as UTF-8, the encoding used almost everywhere on the web, so results match command-line tools like md5sum and shasum.

SHA hashes use your browser's built-in Web Crypto API. MD5 isn't part of Web Crypto, so it's computed with a JavaScript implementation that is tested against the official RFC 1321 test vectors.

Which hash to use

  • MD5: fine for checksums, cache keys and deduplication. Never for passwords or signatures; collisions are easy to create.
  • SHA-1: still found in Git and older systems, but no longer collision-resistant.
  • SHA-256: the default choice for integrity checks today.
  • SHA-384: what Subresource Integrity (SRI) attributes usually use.

Frequently asked questions

Can an MD5 hash be decrypted?
No, hashing is one-way. But short or common inputs can be found by looking them up in precomputed tables, which is one reason MD5 must never be used to store passwords.
Why doesn't my hash match another tool's?
Usually it's invisible differences in the input: a trailing newline, Windows line endings or a different text encoding. Hashing a file avoids those problems.
Are my files uploaded?
No. Files are read and hashed in your browser and never leave your device.