Hash Generator

Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 checksums for text or a file — entirely in your browser.

Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 checksums for a block of text or a file. Paste a published checksum to check it against your file automatically. Files are read locally and never uploaded, so this works on documents you could not send to a hosted service — and on large files, since nothing has to travel over the network.

Hash what?

Checksums

MD5

128 bits

SHA-1

160 bits

SHA-256

256 bits

SHA-384

384 bits

SHA-512

512 bits

MD5 and SHA-1 are broken for security. Practical collision attacks exist for both, so never use them for passwords, signatures or anything an attacker could benefit from forging. They remain perfectly good for their common everyday job: checking that a file downloaded intact. For security, use SHA-256 or stronger — and for passwords specifically, use a dedicated algorithm like bcrypt or Argon2, never a raw hash.

How Hash Generator works

A cryptographic hash reduces input of any size to a fixed-length fingerprint. The same input always produces the same output, and changing a single bit changes the result completely. That makes hashes ideal for answering one question very cheaply: is this file byte-for-byte identical to the one I expected?

That is the everyday use, and it is a good one. When a project publishes a SHA-256 alongside a download, hashing your copy and comparing confirms the file arrived intact and was not swapped en route. Comparing a 64-character string is far easier than comparing gigabytes.

The security picture is where care is needed. MD5 has been broken since 2004 — attackers can construct two different files with the same MD5, cheaply, on a laptop. SHA-1 fell in 2017 when researchers demonstrated a practical collision. Neither should be used where an attacker could benefit from forging a match: signatures, certificates, integrity checks on untrusted input. Both remain perfectly adequate for their common non-adversarial job of detecting accidental corruption, which is why they are still here. SHA-256 and above have no known practical attacks and are the right default for anything security-relevant.

One misuse is worth calling out plainly: **none of these algorithms is suitable for storing passwords**. They are designed to be fast, which is exactly wrong for password storage — speed is what lets an attacker try billions of guesses per second against a stolen database. Password hashing needs a deliberately slow, salted algorithm such as bcrypt, scrypt or Argon2. Adding a salt to SHA-256 helps but does not fix the underlying speed problem.

SHA hashing here uses the Web Crypto API, your browser's native implementation, so even large files hash quickly. MD5 is implemented in JavaScript because Web Crypto deliberately omits it.

How to use Hash Generator

1

Choose text or file

Type or paste text to hash it as you type, or pick a file to read it locally from your device.

2

Read the checksums

All five algorithms are computed at once, with the insecure ones clearly marked.

3

Compare (optional)

Paste the checksum published alongside a download and the matching row is highlighted automatically.

Frequently Asked Questions

Is my file uploaded to hash it?
+
No. The file is read directly from your device and hashed in your browser. Nothing is transmitted, which also means large files hash quickly since there is no upload to wait for.
Which hash should I use?
+
SHA-256 for anything security-related — it is the modern default. MD5 or SHA-1 are fine for detecting accidental corruption, such as checking a download completed intact.
Why are MD5 and SHA-1 marked as insecure?
+
Practical collision attacks exist for both — MD5 since 2004, SHA-1 since 2017. An attacker can construct two different files with the same hash, so neither is safe where forgery would matter.
Can I use SHA-256 to store passwords?
+
No. All these algorithms are designed to be fast, which lets an attacker test billions of guesses per second against a stolen database. Use bcrypt, scrypt or Argon2 for passwords.
How do I verify a downloaded file?
+
Select the file here, then paste the checksum published on the download page into the comparison box. The matching row is highlighted automatically if they agree.
Why does the same text give a different hash elsewhere?
+
Almost always a difference in the exact bytes — a trailing newline, different line endings (CRLF vs LF), or a different text encoding. Hashes are exact: one changed byte changes everything.
What do the bit lengths mean?
+
The output size. SHA-256 produces 256 bits (64 hex characters), SHA-512 produces 512. Longer digests offer a larger security margin, but SHA-256 is ample for essentially all current uses.
Is there a file size limit?
+
The file is read into memory, so very large files are limited by your device's available RAM. Files up to a few hundred megabytes hash comfortably on a typical laptop.

Related tools