Hash Generator

Generate SHA-256, SHA-384, SHA-512 and other hashes.

The Hash Generator computes MD5, SHA-1, SHA-256, SHA-384 and SHA-512 digests of pasted text or a chosen file, all at the same time. It is useful for verifying downloads, comparing file contents, producing cache keys and checking a hash you were given against what your data really produces.

What is a cryptographic hash?

A hash function turns input of any size into a fixed-length fingerprint, shown here as hexadecimal. The same input always gives the same digest, and changing even one character changes the digest completely. A hash cannot be reversed to recover the input, but that does not make it encryption: there is no key and nothing to decrypt. SHA-256 produces 256 bits (64 hex characters), SHA-384 produces 384 bits and SHA-512 produces 512 bits. MD5 (128 bits) and SHA-1 (160 bits) are broken, because attackers can build different inputs with the same digest. They remain fine for spotting accidental corruption, but should not be used for signatures, certificates or password storage. Text is hashed as UTF-8 bytes.

How to use Hash Generator

  1. Enter text or pick a file Type or paste into the Text box, or use the file chooser under Or hash a file. Choosing a file clears the text, and typing text removes the file.
  2. Read the digests All five algorithms are listed at once. MD5 and SHA-1 carry an insecure badge.
  3. Adjust case if needed Tick Uppercase hex to display digests in capital letters.
  4. Verify a checksum Paste a hash into Compare with expected hash. You get Matches the SHA-256 hash (or the matching algorithm) or Does not match any computed hash.
  5. Copy a result Use the copy button beside any digest.

Frequently asked questions

Is hashing the same as encryption?

No. Hashing is one-way and keyless: you cannot get the original back from a digest. Encryption is reversible with a key. Use the Encryption tool if you need to recover the data later.

Why are MD5 and SHA-1 marked insecure?

Practical collision attacks exist for both, so someone can craft two different inputs with the same digest. They are acceptable for detecting accidental corruption, but not for signatures, certificates or password hashing.

Which algorithm should I choose?

Use SHA-256 for most purposes. SHA-384 and SHA-512 give longer digests and are common in some protocols. Match whatever algorithm the checksum you are verifying was produced with.

Why does my hash differ from another tool?

Usually the input differs: a trailing newline, Windows versus Unix line endings, or a different character encoding. This tool hashes the text as UTF-8 and files as raw bytes.

Can I hash a file?

Yes. Pick a file under Or hash a file and all five digests are calculated from its raw bytes. The file name and size are shown, and a Remove button clears it.