Developer

Hash Generator

Compute MD5 and SHA hashes of text or files.

Your text and files are processed entirely in your browser — never uploaded or stored.

What is this tool?

The hash generator converts text or a file into a fixed-length hexadecimal digest using MD5, SHA-1, SHA-256, or SHA-512 — useful for verifying file integrity, checksums, and detecting duplicate data.

Algorithm notes
  • MD5: a 128-bit (32-hex-digit) digest. Fast, but known collision weaknesses make it unsuitable for security use. This page implements MD5 in pure JavaScript.
  • SHA-1: a 160-bit digest, also considered broken for new security purposes.
  • SHA-256 / SHA-512: 256-bit / 512-bit digests still considered secure and widely used, computed via the browser's built-in Web Crypto API.
Note: Hashing is one-way and irreversible — you cannot recover the original data, only compare digests for equality.
Privacy & processing

All hashing happens in your browser. Your text or selected file is never uploaded or stored, and you can copy the result to your clipboard.

What is a hash?
A hash is the fixed-length hexadecimal result of a one-way function applied to data of any length. The same input always produces the same hash, and changing even one bit of the input completely changes the hash. It is used for integrity checks, password storage, and duplicate detection.
What is the difference between MD5 and SHA?
MD5 produces a 128-bit (32-hex-digit) digest and has known collision weaknesses, so it is not recommended for security use. SHA-1 has similar weaknesses. SHA-256 and SHA-512 are still considered secure and widely used, producing 256-bit and 512-bit digests respectively.
Can I recover the original data from a hash?
No. Hashing is one-way, so the original data cannot be recovered from the digest alone. You can only compare two digests to check whether the underlying data matches — which is why passwords are stored as hashes instead of plain text.
When should I use a file hash?
Use it to confirm a downloaded file matches the checksum published by its distributor, verifying it was not corrupted or tampered with. Software distribution sites commonly publish SHA-256 checksums alongside downloads.
Is my text or file sent to a server?
No. All hashing is done in your browser using the built-in Web Crypto API or a self-contained JavaScript implementation; your text or file contents are never uploaded or stored.